Forums › ProRealTime English forum › ProOrder support › Capturing indicator data at each trade entry › Reply To: Capturing indicator data at each trade entry
03/05/2020 at 2:00 PM
#121252
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:
1234567 irsi = rsi[14]buycondition = irsi crosses over 50if buycondition thenbuy at market$var[lastset($var)+1] = irsiendifAfter 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..
Hi, thanks for that. I have a question, how would you calculate the average of the numbers contained in the table $var ? Thank you