Wrong and missed entry on TS

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #105504 quote
    Alessandro
    Participant
    Junior

    I state that I have just started with the trade system, in a discussion I found this code, initially it was a low timeframe scalping system, I set differently, bringing the timeframe to 55 minutes and 10,000 units with the results below.
    But looking at the graph of the entry positions there is something that works badly.
    I ask the most experienced improvements on the TS at 55 minutes
    and eventually take it to the original timeframe at 1 minute

    ONCE CandleNum = 3
    Bullish        = summation[CandleNum](close > open) = CandleNum
    Bearish        = summation[CandleNum](close < open) = CandleNum
    HigherHIGHs    = (summation[CandleNum - 1](high > high[1]) = (CandleNum - 1))
    LowerLOWs      = (summation[CandleNum - 1](low < low[1])   = (CandleNum - 1))
    MyRsi          = Rsi[14](close)
    IF Bearish AND LowerLOWs AND Not OnMarket AND MyRsi > 30 THEN
    BUY 1 CONTRACT AT MARKET
    Sl = max(50,(close - low) / pipsize)
    // dax 55 minuti 10000 unità 84.14% max perdita 250€ max guadagno 750 (46 win a0 loss) 
    Tp = Sl * 3
    ENDIF
    IF Bullish AND HigherHIGHs AND Not OnMarket AND MyRsi < 70 THEN
    SELLSHORT 1 CONTRACT AT MARKET
    Sl = max(50,(high - close) / pipsize)
    Tp = Sl * 3
    ENDIF
    SET STOP   pLOSS   Sl
    SET TARGET pPROFIT Tp
    //trailing stop
    trailingstop = 24
    //resetting variables when no trades are on market
    if not onmarket then
    MAXPRICE = 0
    MINPRICE = close
    priceexit = 0
    endif
    //case SHORT order
    if shortonmarket then
    MINPRICE = MIN(MINPRICE,close) //saving the MFE of the current trade
    if tradeprice(1)-MINPRICE>=trailingstop*pointsize then //if the MFE is higher than the trailingstop then
    priceexit = MINPRICE+trailingstop*pointsize //set the exit price at the MFE + trailing stop price level
    endif
    endif
    //case LONG order
    if longonmarket then
    MAXPRICE = MAX(MAXPRICE,close) //saving the MFE of the current trade
    if MAXPRICE-tradeprice(1)>=trailingstop*pointsize then //if the MFE is higher than the trailingstop then
    priceexit = MAXPRICE-trailingstop*pointsize //set the exit price at the MFE - trailing stop price level
    endif
    endif
    //exit on trailing stop price levels
    if onmarket and priceexit>0 then
    EXITSHORT AT priceexit STOP
    SELL AT priceexit STOP
    endif
    3-Candle-rsi.itf Cattura.jpg Cattura.jpg
    #105508 quote
    robertogozzi
    Moderator
    Master

    What is working badly?

    Add details, please.

    Moreover, when you start a topic, please use a meaningful subject,

    TS doesn’t mean anything by  itself, you should add what do you want about that TS.

    Let me know and I’ll change it.

    Nicolas thanked this post
    #105509 quote
    Alessandro
    Participant
    Junior

    if you run the probacktest you will see that some market entries are wrong. what do you think of this trading system?

    Can I change the title of the discussion?

    #105514 quote
    GraHal
    Participant
    Master

    55 mins is not a good Timeframe at all , best stick to 1 min, 5, 15, 30 or 60.

    maybe it was a typo and you meant 5 mins?

    yes you can change the title, well you cant but if you say what you want then Roberto will change the title for you.

    #105515 quote
    robertogozzi
    Moderator
    Master

    I will change the subject.

    I need to know Instrument, TF, date &   time of the candlestick with wrong/missed entry.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Wrong and missed entry on TS


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by robertogozzi
6 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/25/2019
Status: Active
Attachments: 2 files
Logo Logo
Loading...