DOUBLE TOP/BOTTOM HUNTER

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #61163 quote
    LeoLeo
    Participant
    Veteran
    Another great exit possibility is to add a trend line in maximus and minimus  
    LowerTrendLine = LEVMIN + (LEVMIN-BLEVMIN)/(POSLEVMIN-BPOSLEVMIN)*(BARINDEX-POSLEVMIN) //trigonometry 
    UpperTrendLine = LEVMAX + (LEVMAX-BLEVMAX)/(POSLEVMAX-BPOSLEVMAX)*(BARINDEX-POSLEVMAX) // trigonometry
    
    
    IF longonmarket then
    
    IF close < LowerTrendLine-pipsize THEN
    SELL AT MARKET
    ENDIF
    
    ENDIF
    
    IF shortonmarket then
    
    IF close > UpperTrendLine + pipsize THEN
    EXITSHORT AT MARKET
    ENDIF
    
    ENDIF
    
    GraHal thanked this post
    #61164 quote
    LeoLeo
    Participant
    Veteran
    Another exit strategy I am working on is posted here
    Need help to code a more dynamic trailing stop
    #61184 quote
    raphaelopilskiraphaelopilski
    Participant
    Senior
    did you run a backtest with the new closing conditions anywhere?
    #61232 quote
    LeoLeo
    Participant
    Veteran
    Yes, I improve the equity curve but not the reliability
    #61280 quote
    raphaelopilskiraphaelopilski
    Participant
    Senior
    could you post the complete code with the closing conditions?
    #61619 quote
    LeoLeo
    Participant
    Veteran
    Hi raphaelopilski, Today I wanted to upload the code and a comparison between two exit strategy. This time the result was uncomfortable to me. I tested in AUDUSD 1min and the things were totally the oposite. So better I do not post the version with some other exit position (for no confusing the people) rather I post a photo for give you an idea how they are. But I I said: this time it doesn’t work better Lets continue working in this project I am very motivated to work finally in something like  pattern recognition.
    Screen-Shot-2018-02-06-at-04.53.55.png Screen-Shot-2018-02-06-at-04.53.55.png Screen-Shot-2018-02-06-at-05.09.26.png Screen-Shot-2018-02-06-at-05.09.26.png Screen-Shot-2018-02-06-at-05.13.18.png Screen-Shot-2018-02-06-at-05.13.18.png
    #62297 quote
    GianlucaGianluca
    Participant
    Master
    @Leo if i can help you i am here 🙂 i love your ideas and your spirit!
    #62323 quote
    LeoLeo
    Participant
    Veteran
    thanks Gianluca, well here is the indicator https://www.prorealcode.com/prorealtime-indicators/double-top-double-bottom-detector/  If you find a characteristic that made the double top/bottom reliable that can be very useful. then  I hope then I can program it
    #62324 quote
    LeoLeo
    Participant
    Veteran
    Based on having watched charts for years, I have often times noticed that legitimate double tops tend to make a higher high (tops) or lower low (bottoms) on the second top or bottom than the first. The average close of the second top however if measured across the candle directly before the new high (tops) and low (bottoms) along with the candle that printed the actual high or low is usually lower (for tops) or higher (for bottoms).
    JuanJ can you please send me I picture with some explanation, that would be great!
Viewing 9 posts - 16 through 24 (of 24 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

DOUBLE TOP/BOTTOM HUNTER


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Leo @leito Participant
Summary

This topic contains 23 replies,
has 5 voices, and was last updated by LeoLeo
8 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/17/2017
Status: Active
Attachments: 10 files
ProRealCode ProRealCode
Loading...