in this strategy i used get unit time block to define the new day and turn (go) from false to true by assign block. i use EUR/USD as an instrument and default period 30 minute , and EMA blocks with shift 4,3,2,1 and time period 14 , and get historical candle with shift 4,3,2,1 .
the logic of trading is : after 00:00 the assign block turn false to true and if the EMA close price shift( 4,3,2) is greater than the candle close price shift (4,3,2) then EMA close price shift( 1) is less than the candle close price shift (1) ( the meaning is if the Previous 3 candles closer lower than the ema indicator then the last candle close greater than ema ) the strategy open buy . like this exemple

on the SELL we have the opposite conditions if the EMA close price shift( 4,3,2) is less than the candle close price shift (4,3,2) then EMA close price shift( 1) is greater than the candle close price shift (1) ( the meaning is if the Previous3 candles closer greater than the EMA indicator then the last candle close less than EMA ) the strategy open SELL. i used calculation block to limit the strategy for take only 2 orders every day ( not sure if this option work correctly )
this is exemple bout sell

the strategy use the full margin to open orders i set it on 15M as trade amount wit h a stop lose 100pip and take profit 4pip and it trade on EUR/USD
翻译为 英语 显示原始