Newbie type Questions & Answers

Viewing 46 post (of 46 total)
  • Author
    Posts
  • #132912 quote
    tradetrader101
    Participant
    Junior

    Hi with the code below I forgot to mention that I’d like the second trade that initiated when the Price reaches 90% of the original take profit level to have the same take profit level as the original trade. Thanks.

    //within reach of the take profit
    IF Close-TRADEPRICE(1)>(TKPROFIT-7) AND CountOfPosition < 3 AND LONGONMARKET THEN
    BUY 1 PERPOINT AT MARKET
    ENDIF
    
    IF TRADEPRICE(1)-Close>(TKPROFIT-7) AND CountOfPosition < 3 AND SHORTONMARKET THEN
    SELLSHORT 1 PERPOINT AT MARKET
    ENDIF
Viewing 46 post (of 46 total)
  • You must be logged in to reply to this topic.

Newbie type Questions & Answers


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 45 replies,
has 5 voices, and was last updated by tradetrader101
5 years, 9 months ago.

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