Distance to a price

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

    Hi,

    what would be the code for

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

    thx

    #15029 quote
    NicolasNicolas
    Keymaster
    Legend

    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.
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

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 NicolasNicolas
9 years, 11 months ago.

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