open position when price rises...
-
Hi,
Is there any way to create an EA which opens a buy position when price rises 40 pips with no larger corrections then 15 pips.
And when the price is still rising 30 pips with no larger correction(price is decreasing) then 15 pips --> open a double sized sell position.once a position is opened I would use the pips away from open price. but the problem is i dont know what blocks to use to create my conditions. how to check the size of the corrections on the line graph?
Thank you. -
That's why indicators exist - they get the informations from candles, do some calculations over that information and produce other information (or signals) that you or the EA can use in order to decide when to trade. MA, RSI, BB, CCI, Stochastic... different indicators for different needs.
Candles themselves are also information, and each candle can be easily accessed from the EA. You can read O, H, L and C of any candle that you can see. Also, if you ever need this, here is a block named "Single candle template" that can match certain candle form.
-
Thank you.