can someone please write the code in afl with the below conditions..
A buy signal should be generated when RSI crosses above 60 RSI>60 in anytime frame, by taking the smallest possible time frame ie M1 candle close value at that instance
similarly a sell signal should be generated when RSI crosses below 40 RSI<40 in anytime frame, by taking the smallest possible time frame ie M1 candle close value at that instance
now the executed orders should be covered in this way
Depending upon the lot size of the futures and entry value of the trade...the trade should be closed for desired amount of profit
example:buy got executed at 100Rs of a 4000 lot share it should be closed when it hits 100.50 ie a profit of 2000rs.....similalry sl should be the same way after entering if it hits 99.50 it should close the trade with a loss of 2000
Here the editable parameters should be
LOT SIZE
POINTS OF PROFIT ,STOP LOSS (or) AMOUNT OF PROFIT
till the position is covered no new entry should be there
A buy signal should be generated when RSI crosses above 60 RSI>60 in anytime frame, by taking the smallest possible time frame ie M1 candle close value at that instance
similarly a sell signal should be generated when RSI crosses below 40 RSI<40 in anytime frame, by taking the smallest possible time frame ie M1 candle close value at that instance
now the executed orders should be covered in this way
Depending upon the lot size of the futures and entry value of the trade...the trade should be closed for desired amount of profit
example:buy got executed at 100Rs of a 4000 lot share it should be closed when it hits 100.50 ie a profit of 2000rs.....similalry sl should be the same way after entering if it hits 99.50 it should close the trade with a loss of 2000
Here the editable parameters should be
LOT SIZE
POINTS OF PROFIT ,STOP LOSS (or) AMOUNT OF PROFIT
till the position is covered no new entry should be there