Help with a a quick code

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #68675 quote
    bezieh
    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
    robertogozzi
    Moderator
    Master
    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
    bezieh
    Participant
    Average

    Thanks pal

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

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 bezieh
7 years, 10 months ago.

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