How to stop reentry after Target Profit

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12567 quote
    achin316
    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
    Nicolas
    Keymaster
    Master

    Hello,

    How does the profit are triggered? By takeprofit function?

    #12619 quote
    grizzly
    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
    grizzly
    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.

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 grizzly
9 years, 5 months ago.

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