Hedging Strategy

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #34926 quote
    GraHalGraHal
    Participant
    Master

    Maz thanks.

    Is Reset supposed to be commented out?

    Under what conditions would Reset be made active in the Code?

    Cheers
    Graham

    // reset
    //if time = startTime then
    //tradesPlaced   = 0
    //sellOrderLevel = undefined
    //buyOrderLevel  = undefined
    //stopTarget     = undefined
    //stopLoss       = 999999999 // off
    //endif
    #34936 quote
    MazMaz
    Participant
    Veteran

    “// reset” is just a code comment meaning “section to reset variables to undefined here below”

Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Hedging Strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
learner @learner Participant
Summary

This topic contains 16 replies,
has 5 voices, and was last updated by MazMaz
9 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/10/2016
Status: Active
Attachments: 6 files
ProRealCode ProRealCode
Loading...