how to sell and exitshort on current price but not close??

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

    indicator2 = Average[20](close) c2 = (close = indicator2) IF c2 THEN SELL AT MARKET ENDIF

    can i set the 5 min close price hit 1 hour indicator then exit the market?

    #29007 quote
    Elsborgtrading
    Participant
    Veteran

    Hi. No unfortunately no. your conditions are tested at each run. if your timeframe is 1 H then it’s tested every 1 hour.

    We need wait until multiframe time support for this to work- or scale your code down to 5 min TF and multiply your indicators to the match 1 H timeframe.

    cheers Kasper

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

how to sell and exitshort on current price but not close??


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
ccskycc101 @ccskycc101 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Elsborgtrading
8 years, 11 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/18/2017
Status: Active
Attachments: No files
Logo Logo
Loading...