Newbie type Questions & Answers

Viewing 46 post (of 46 total)
  • Author
    Posts
  • #132912 quote
    tradetrader101tradetrader101
    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.
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

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 tradetrader101tradetrader101
6 years, 4 months ago.

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