DislikedCan someone amend this EA so that it can open mini lots instead of 1 standard lot? First time I see an EA with so few variables that it's impossible to tell what type of indicator it uses to open trades.
Does it make a difference if you set the begin price above or below the current price? Or do you have to decide on a directional bias before setting the begin price?Ignored
QuoteDislikeddouble lots = 0;
double price = 0;
double dt = (money / Ask - com) * experts / (experts + 1);
if(dt < 0)
{
if(buyprofit < 0)
return(0);
if(sellprofit > 0.01)
return(0);
dt = (com - money / Bid) * experts / (experts + 1);
if(dt < 1)
{
closeby(tickbuy, ticksell);
return(0);
}
if(dt > 10)
dt = 10;
lots = MathFloor(dt) / 10;
if(tickbuy >= 0)
{
if(buyvolume > lots)
{...
On your second point, this is the tricky part. You are correct, it seems that on certain pairs once you determine a directional bias, you set the price to be somewhere above the current price action if you are bearish. ..a level that you don't expect to be hit. From there, it seems when price moves X number of pips a new short position will be opened in the direction going away from the ceiling price.
If price action does cross this, it will open buy trades.
On my attachment of the gbp/jpy eur/jpy (1 min chart) , I had set the ceiling price well above the current price and was just lucky enough to get a sharp selloff through 3 sessions, Asian, London and NY.
But I say tricky because on other pairs it seems to work the opposite way.
Maybe I am just using it wrong, not sure. But the functionality appears to work correct on usd/jpy, gbp/jpy and eur/jpy.
usd/jpy is another fun pair for this way of trade since it is so range bound.
I will demo this pair too.