Hello everyone I want an EA that runs on data presented by tradingview.com. It is based on the candlestick.
1st case:- For example if we are looking into 3 different Symbol at trading view.com and 3 different timeframe for each symbol. If symbol 1 with timeframe 1day currently closed candle with open and close calculated to say so how much it moved if it moved up 50pips after open data should be +50. For symbol 2 with timeframe 1 week lets say if weekly closed candle moved up 50 data is +50. For symbol 3 with monthly timeframe lets say if closed candle moved up 500 pips the data should result in +500. So the total data for all should be +50+50+500= +600. Here we are calculating the candles which recently closed.
2nd case:- we should calculate same thing for candle which closed before recently closed candles. we generate similar data but here if the data lets say is -300. Now considering 1st case result +600 is greater than -300. Therefore we will go long on symbol 2 & will go short if current data let's say is +250 because +250 movement is still lower than -300 movement. And total open order is 1 order only. After we close our position we change our direction.
We close short then we go long. If condition is long we first close our short position and instantly open long position. EA should be very quick and order should only open in new bar and close at new bar too.