Help with a a quick code

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #68675 quote
    beziehbezieh
    Participant
    Average

    Hey guys, can someone help me code, that it should “Sell”, if the FIRST candle AFTER my entry point is “Red”?

    And if it’s green, ofcourse dont sell, this condition should only be on the first candle after my entry point!

    Would really appreciate the help, thanks!

    #68676 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    IF (BarIndex - TradeIndex) = 1 THEN   //after just 1 bar...
       IF close < open THEN               //...if RED candle...
          SELL AT MARKET                  //...EXIT long position
       ENDIF
    ENDIF
    #68677 quote
    beziehbezieh
    Participant
    Average

    Thanks pal

Viewing 3 posts - 1 through 3 (of 3 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

Help with a a quick code


General Trading: Market Analysis & Manual Trading

New Reply
Author
author-avatar
bezieh @bezieh Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by beziehbezieh
8 years, 5 months ago.

Topic Details
Forum: General Trading: Market Analysis & Manual Trading
Language: English
Started: 04/18/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...