Capturing indicator data at each trade entry

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #120889 quote
    Alun
    Participant
    Average

    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.

    #120943 quote
    Nicolas
    Keymaster
    Master

    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:

    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..

    #121005 quote
    Alun
    Participant
    Average

    OK, thank you!

    Will try to go further with this.

    #121252 quote
    Roger
    Participant
    Veteran

    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:

    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..

    Hi, thanks for that. I have a question, how would you calculate the average of the numbers contained in the table $var   ?   Thank you

    #121346 quote
    Roger
    Participant
    Veteran

    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:

    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..

    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 🙂

    #121445 quote
    Alun
    Participant
    Average

    Does anyone know when version 11 will be available with IG?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Capturing indicator data at each trade entry


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Alun @alun Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by Alun
5 years, 11 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/01/2020
Status: Active
Attachments: No files
Logo Logo
Loading...