Making a indicator from an algo (quadratic semaphore) – problem

Forums ProRealTime English forum ProBuilder support Making a indicator from an algo (quadratic semaphore) – problem

Viewing 15 posts - 1 through 15 (of 16 total)
  • #79624

    Hey guys,

    I´ve created an algo that I´m pretty pleased with and I have made an indicator out of it.

    The only thing I´ve changed in the code when converting it into a indicator is replacing for exaple “buy” with “drawarrow up”, “sellshort” with “drawarrowdown” , nothing else in the code. But as you can see in my pictures the indicator dosen´t always do what the backtest is doing and in some places there´s up to four bars between when the indicator is showing where to take a position and where the backtest is taking it.

    Do anyone have a clue about what the problem can be?

     

    #79629

    Only the complete code of both the Algo and the Indicator allows to replicate what you described.

    1 user thanked author for this post.
    #79631

    The only thing I´ve changed

    Have you also added / typed Return as the last line of the Algo turned into Indicator?

    Post the code on here if you want and I’ll try it also?

    1 user thanked author for this post.
    #79632

    I´m running the code/indicator on Sweden 30 OMX daily (it´s the same issue on other markets and timeframe).

    #79643

    Indicator works on my Platform, unless I have misunderstood the Issue?

    More later … Grandkids hogging my computer! 🙂

    1 user thanked author for this post.
    #79645

    Look at my pictures.

    Run the backtest and you can see that there´s inconsistencies between the backtest and indicator. Indicator shows positions that the backtest dosen´t take and the other way around. There´s also some large gaps between indicator positions and backtest positions.

    1 user thanked author for this post.
    #79646

    I think that your indicator and your strategy does not share the same settings because all is correct in my own tests (picture attached). Please double check the variables a,b,w, etc. and if they have the same values.

    1 user thanked author for this post.
    #79653

    I have the same settings in the backtest and indicator. Right now i have the timesettings at 00:00-00:00 and it get´s even worse if I change it to the real trading hours for omx (09:00-17:30).

    #79655

    Hmmmm .. everything’s working perfectly for me.. please compare your time settings (right click on the price chart and choose ‘custom trading hours’).

    Are you with IG? Real or demo account?

    Could someone help us with a backtest?

    #79658

    Sorry I can’t get chance to read the full story (Grandkids) , but does attached help?

    #79663

    Thank you GraHal, your backtest match perfectly the indicator, just like me. I’m still struggling to find what is the problem with J_Capitale account..

    #79668

    Thanks for your answers. I´m with IG on a demo account with real time data.

    I´ve added pictures the timesettings that I´ve used when posting pictures here (00:00-00:00) and the timesettings that I want to use (09:00-17:30, no weekend data, apply settings to non intraday).

    #79671

    Sorry for double posting but I tried to add the “weekend data” and now everything works.

    But why is it like this? If I change the timesettings, isn´t the backtest on the new settings then? I just want real data, not IG data…

    #79675

    You can change the settings you like, but candles keep being built on real incoming data by IG, so you won’t see weekend data, but those data are still used to calculate indicators.

    I know this because I used to hide weekend data myself and backtests were different from what I could see on the screen.

    2 users thanked author for this post.
    #79712

    Oh that´s just shit. I want to be able to trade this strategy outside of IG because tax regulations.

    But I guess that I can trade after the strategy (algo) tho it seemes to care about my timesettings, I will have a one or two days delay but it´s better than nothing I guess. Thanks for your answers.

Viewing 15 posts - 1 through 15 (of 16 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login