Forums › ProRealTime English forum › ProOrder support › Capturing indicator data at each trade entry › Reply To: Capturing indicator data at each trade entry
03/02/2020 at 11:00 AM
#120943
Please use the automated trading forum for that type of question, thanks.
Yes, that would be possible. The best way would be to use variables in array (not possible in versions prior to v11). Example with the RSI:
1 2 3 4 5 6 7 |
irsi = rsi[14] buycondition = irsi crosses over 50 if buycondition then buy at market $var[lastset($var)+1] = irsi endif |
After that make a loop through all $var to analyze the performance of each order. That is a rough code snippet that would need further work but that’s the main idea..