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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29005 quote
    ccskycc101ccskycc101
    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
    ElsborgtradingElsborgtrading
    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.
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

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 ElsborgtradingElsborgtrading
9 years, 6 months ago.

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