An advisor that would follow the rate on a five-minute chart with conditions after launch: - page 9
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Is it correct?
Yes)
and why isn't it put in the second line?
These lines are absolutely identical (the same)! - this is a condition for sale. - It doesn't matter how you write it, either as in the first line or as in the second.
And for buying I have already written -
This is understandable.
Then why would Delta work differently?
At the time of purchase, as you have:
and when you sell it, with a minus sign:
I don't understand the question. Delta works fine in both cases. When selling, you can write the condition without any minus (by changing the sign to >):
if (iOpen(NULL,5,0)-Bid<-Delta*Point) //Цена выросла на больше или = Delta пунктов { ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-StopLoss*Point,Ask+TakeProfit*Point,"Купил",MagicNumber,11111,Green); } if (iOpen(NULL,0,0)-Bid>Delta*Point) //Цена упала больше Delta пунктов { ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Ask+StopLoss*Point,Bid-TakeProfit*Point,"Продал",MagicNumber,22222,Green); }I'll try it tomorrow....These lines are absolutely identical (the same)! - this is a condition for sale. - It doesn't matter how you write it, either as in the first line or as in the second.
And for buying I have already written -
On rise it buys.....
I need to sell when Delta points are rising and buy when Delta points are falling...