How to stop reentry after Target Profit

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12567 quote
    achin316achin316
    Participant
    New

    Hello,

    How to avoid re-entry after booking profits.

    My trading system re-enters the long after booking profits.

    What should I add to stop re-entering the trade if it has booked profits ?

    #12587 quote
    NicolasNicolas
    Keymaster
    Legend

    Hello,

    How does the profit are triggered? By takeprofit function?

    #12619 quote
    grizzlygrizzly
    Participant
    Average

    Code:

     

    donotbuy = positionperf(1)>0 and longonmarket[1]  // 1 candle ago
    donotsell = positionperf(1)>0 and shortonmarket[1] //1 candle ago
    
    Nicolas thanked this post
    #12620 quote
    grizzlygrizzly
    Participant
    Average

    And if you want to get fancy:

     

    //FALLACY - Runs are not statistically independent to trend//
    
    Losses = positionperf(1)<0 and positionperf(2)<0 and positionperf(3)<0
    Streak = positionperf(1)>0 and positionperf(2)>0 and positionperf(3)>0
    
    LLL = (tradeprice(1)>tradeprice(2) and tradeprice(3)>tradeprice(4) and tradeprice(4)>tradeprice(5) and tradeprice(5)>tradeprice(6) and Streak and positionperf(4)>0 and positionperf(5)>0) 
    SSS =  (tradeprice(1)<tradeprice(2) and tradeprice(3)<tradeprice(4) and tradeprice(4)<tradeprice(5) and tradeprice(5)<tradeprice(6) and Streak and positionperf(4)>0 and positionperf(5)>0) 
    
    //
    
Viewing 4 posts - 1 through 4 (of 4 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 stop reentry after Target Profit


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
achin316 @achin316 Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by grizzlygrizzly
10 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/02/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...