Distance to a price

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14952 quote
    gekko_80
    Participant
    New

    Hi,

    what would be the code for

    “If close is 20 points over yesterdays close then buy….”

    thx

    #15029 quote
    Nicolas
    Keymaster
    Master

    This could be coded like this:

    if Dclose(0)>Dclose(1)+20*pointsize then 
      BUY 1 SHARE AT MARKET 
    endif 
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Distance to a price


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
gekko_80 @gekko_80 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
9 years, 4 months ago.

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