Capturing indicator data at each trade entry
Forums › ProRealTime English forum › ProOrder support › Capturing indicator data at each trade entry
- This topic has 5 replies, 3 voices, and was last updated 4 years ago by
Alun.
Tagged: array
-
-
03/01/2020 at 12:59 PM #120889
When running a backtest, is it possible to capture indicator values at trade entry automatically into a table of data?
My objective is to examine my indicator(s) values at each trade entry with the detailed report closed positions list, my aim is to compare those indicator values at trade entry when the system makes losses and those indicator values at trade entry when the system makes gains.
03/02/2020 at 11:00 AM #120943Please 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:
1234567irsi = 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..
03/02/2020 at 7:28 PM #12100503/05/2020 at 2:00 PM #121252Please 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:
1234567irsi = 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
03/06/2020 at 1:31 PM #121346Please 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:
1234567irsi = 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
Edit : I struggle with it only because PRT v11 is not available with IG yet 🙂
03/07/2020 at 5:07 PM #121445 -
AuthorPosts
Find exclusive trading pro-tools on