Run time variables

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #230840 quote
    VictorVinnie
    Participant
    New

    Hi,

    Anybody knows whether it is possible to provide values for variables when you actually execute your ProOrders?

    So far I need to modify the code everytime “if price above this number then quit”..  and go through the whole process every time.

    Any ideas?

    #230844 quote
    robertogozzi
    Moderator
    Master

    Variables and data input are not supported at runtime.

    #230845 quote
    GraHal
    Participant
    Master

    Any ideas?

    Below spark any ideas in your mind?

    If Price > X AND Price < X1 Then
    Do this
    Else
    If Price > Y AND Price < Y1 Then
    Do That
    Else
    If Price > Z AND Price < Z1 Then
    Do theOther
    ENDIF
    ENDIF
    ENDIF
    #230852 quote
    VictorVinnie
    Participant
    New

    Yes, and if you want to change the values for X, Y or Z every time you run the code you have to hardcode them and reload everything.

    I hope this is changed in future versions, it probably is the only programming language where this has to be done

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

Run time variables


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by VictorVinnie
1 year, 10 months ago.

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