Buy if higher at a specified time of the day

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #95803 quote
    bullbear
    Participant
    Senior

    I have a problem to code this.

     

    Buy if current candle is higher then it was at 09:20.

    Thanks 🙂

    #95805 quote
    robertogozzi
    Moderator
    Master
    Try this:
    If time = 092000 then
       Priceat0920 = close
    Endif
    If close > Priceat0920 then
        Buy at market
    Endif

    #95896 quote
    bullbear
    Participant
    Senior
    Thanks Roberto 🙂
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Buy if higher at a specified time of the day


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
bullbear @bullbear Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by bullbear
6 years, 10 months ago.

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