Problem defining variables

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #19210 quote
    yanistrate
    Participant
    New

    Hello guys,

     

    Well I make a simple code for automated trading and I defined some varibles with the botton add on the right of the compilator screen. I managed to run backtests with no problem but when I hit the botton Prepere for automatic trading there is an error message that comes up : ¨ Replace the variables with specific values in order to start the automatic system¨ Can someone help me with that? I cant figure out why the definition with the add botton of thevariables isn´t correct so to start the trading system?

     

    Thank you

    error.png error.png
    #19215 quote
    GraHal
    Participant
    Master

    Hi Yan

    Just a quick glance … you still show media1 as the period for the average. replace with Average[10](close) / your optimised value and you should be good to go?

    Come back on here and let us know how you get on please?

    Cheers
    GraHal

    #19217 quote
    GraHal
    Participant
    Master

    ON 2nd look … same for bollingerup[bol] … you need a [value] in there in order to set the Strategy going on Automatic Trading.

    Nicolas thanked this post
    #19222 quote
    yanistrate
    Participant
    New

    Thank you GraHal, but I dont think I got the idea. You are saying to modify  the value in the variable definition or to change it on the fly in the code ? Im posting a screen of my variable definition, which for PRT seems to be incorrect due to the error thats giving me.

    error-1.png error-1.png
    #19236 quote
    arcane
    Participant
    Senior

    Hola,

    No es posible para variables no definidas en el programa.

    Después de la optimización, debe reemplazar el nombre de la variable con un número.

    #19239 quote
    yanistrate
    Participant
    New

    Vale vale, ya lo he entendido. Pero la cosa es que, las variables definidas aparte, no son un numero si no cada una define un minimo, un maximo y un paso. Por ejemplo de 20 a 60 con un paso de 8 en 8 .

     

    Gracias!

    #19301 quote
    GraHal
    Participant
    Master

    Your screen shot shows the range of values  over which you want to optimise. So click  Accept, then Optimise (or whatever? I forget despite having done it 1000s of times :). When the Optimisation run completes it will show you the optimum value for Media1 (in brackets after the Bot name).

    So input this optimum value in place of Media1 in your code. Same with the Bollinger variable.

    Also – to consolidate the method in your mind – read the PRT manuals available under Help on yuor Platform.

    Hope above makes sense? Let us know how you get on please.

    Cheers
    GraHal

    #19323 quote
    yanistrate
    Participant
    New

    Thank you GraHal! Well said ! Now I got the idea! The issue is solved !

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

Problem defining variables


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
yanistrate @yanistrate Participant
Summary

This topic contains 7 replies,
has 3 voices, and was last updated by yanistrate
9 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/28/2016
Status: Active
Attachments: No files
Logo Logo
Loading...