first have a look at the code , buffers are usually near the top.
second set a different colour arrow after each buffer type then test in visual mode.
heres your buffers

first have a look at the code , buffers are usually near the top.
second set a different colour arrow after each buffer type then test in visual mode.
heres your buffers

https://fxdreema.com/shared/HX9t1g22b
last one after buy resets back to false.
next condition can happen anytime as long as check flag is true, need to find a way to measure time from cross . like wait x number of bars then set as false again after the first set flag leg.
https://fxdreema.com/shared/DizdxZbZb
make sure all ID number are 1 means the candle has closed otherwise it will trade on open bar.
missed the bit where u said next bar... just make your moving average and stochastic ID2 , if you want a bull or bear bar next ID1
not sure if u wanted bull or bear so made candle open and close above MA. if it was a bull then only open is need because its a given it will close above. could also write candle low less or equal to 50MA so u know its close to MA and not way up there. just drop down menu parameter on candle open/close lots of options there. bull bar would simply be close is greater than open ect..
https://fxdreema.com/shared/rMYb4WAid
could use moving averages like this
under stop loss go to indicator select par sar,,
for sl tp
TP 200%of SL all in buy or sell blocks
maybe on trade event target point, ask price =TP . condition block click first arrow top left purple dot.
just place a sell pending order aswell and move the sl down further . still going to have to close that buy trade some time though.
have u put in once per bar block. also no trade block but filter to only buys or sells.
can use set flags true false and check flag. under flags
try using single candle template under various signals, if bull bar make lower wick atleast 50%or more and upper wick no more than 15% say. hope that helps
gives some room for other things to occur, width means cross can occur now or within x number of candles ago but still valid.
cross would have to be set to ID3 , create object arrow.
negative trades target to breakeven/ trade open price i mean .
working with group of 20 trades , if i have a proffitable group i will close losers and break even winners, but if the group is negative would like to close profits and the move negative trades stop loss to break even / trade open price.
like a breakeven that moves target instead of stop . ta
if a trade is in the negative i would like to move the target to trade open price / break even , then place a stop equal distance as the target is from current price , any ideas how to get trade open price. .
Know of any website where u can sell expert advisors source codes. theres codester but dint find anything similar .
@miki greatbwhich block is this in or in mt5.