I am struggle to find the flow of this EA.Please help
-
I want to create the ea that open position (BUY or SELL) when the total pips reached from the candlestick that i showed in the picture.I am really hope someone could help me for a newbie project..thanks a lot

-
@bliinkboy So you want to take the average candle size of the last 4 candles and if the 5th candle average exceeds that size you want to open a trade . Is hat right? How do you calculate the entry? Is it open price +/- average of last 4?
-
as you can see on the picture..i only calculate average at one candlestick only which located on yellow line.This is the example. lets said the average candlestick on yellow line is 0.66300.then the market keep going down 300 pips.The EA will start open position buy.it doesn't matter it reach at 4th,5th or 10th as long as it reach to 300pips.Hope you understand my explanation.
-
@bliinkboy said in I am struggle to find the flow of this EA.Please help:
0.66300.
And how do you identify that special yellow marked candle?? However, somehow you found one candle you like and want to set a pending order (?) in n (in this cas 300 pips away) in the opposite direction. So the direction you decide by some logic (eg. yellow marked is a bear candle), right?
I'd start like this for the given example.

Of course this block needs some connections to work, but you may start here. Create a double variable (here: dEntryPrice) taking the Median Prince and adjust it by -300 Pips. You may also use an integer variable representing the -300 instead of the static number.
-
And how do you identify that special yellow marked candle??
Ans: I will set specific timeyour idea was really helpful.here i show you the flow,am i correct?how do i post the link..i dont know how to do it,so i just snap a picture.

-
-
@bliinkboy Well, those blocks would only be executed if there is a trade (block 12)! If that is part of your strategy it's fine. Otherwise maybe use the No trade block.
-
this is the link...
https://fxdreema.com/shared/vvULL3U7cthose blocks would only be executed if there is a trade (block 12)!..could you please explain what that block 12 mean?im still confusing about the block as well.yes you true,when i attached at the platform,it doesn't work at all
-
@bliinkboy If trade block mean, that orange dot is executed if there's a trade open for the pair on the chart (opened by your EA), yellow dot means the condition is false, hence there is no trade. Bare in mind that trade is an opened position where order is If trade/order checks for existence of both, a pending order or an open trade.
That blocks also allow to limit the condition to Buys or Sells just in case sometimes it matters.Btw. will there be only 1 order executed and the other one deleted? In that case you might use the oco (one cancels other) order type.

-
@bliinkboy said in I am struggle to find the flow of this EA.Please help:
this is the link...
https://fxdreema.com/shared/vvULL3U7cthose blocks would only be executed if there is a trade (block 12)!..could you please explain what that block 12 mean?im still confusing about the block as well.yes you true,when i attached at the platform,it doesn't work at all
Block 10 in the adjust field should be +300 Pips rather than 300 Pips