End Of Day – YEN M15 Strategy

Forums ProRealTime English forum ProOrder support End Of Day – YEN M15 Strategy

Viewing 15 posts - 1 through 15 (of 96 total)
  • #212048

    Hi every one,

    I start this topic to discuss this strategy and understand it and why not improve it and at the same time learn to program, here is the code of the strategy :

     

    #212052

    This is a classic Asian session breakout strategy. You’ll find many literature on the web about.

    1 user thanked author for this post.
    #212079

    tks you @Nicolas

    if there are people willing to work with me on this strategy on understanding and why not improve it,

     

    First of all I don’t know why my calculations are not good I don’t get the same entry price in Long :

    Highest : 134.986
    Lowest : 134.607
    amplitude = Highest – Lowest  = 134.986 – 134.607 = 0.379
    Ouverture : 134.968

    in this situation, there is the price of Buy and SellShort :

     

    1) question one, why the entry limit price it’s not the same of my math, maybe I did wrong ? it’s a limit price not market
    2) according to the documentation it is not possible to be long and short at the same time, so normally the SellShort order should close the Long buy order
    3) Also we can notice that we doubled our capital which makes us a gain of 100%, but also we had drawdown of more than 30%, Perhaps a better management with multiple timeframe or a good follow-up of the winning positions would have brought us a little more gain
    4) If you have video or other links that summarize / explain this strategy for understanding I am a taker

    #212092

    You are assuming LIMIT pending orders, while it could be that STOP pending are required. When placing pending orders, using the incorrect type may result in trades opened AT MARKET.

    LIMIT pending orders are to be used when the entry price is most favourable than the entry price, i.e. you BUY at a lower price or SELLSHORT at a higher price, while STOP pending orders are to be used when you BUY at a higher price or SELLSHORT at a lower price (see attached pic).

     

    1 user thanked author for this post.
    #212154

    ok, I understand you and your explaination is clear, but for me it’s still not clear why if they already have an limite long order it’s executed at a better price like a stop order, Also we speak about forex, so normaly no probleme of execution, but I don’t forget also I’m on a CFD with IG,

    I will come back after some days about this execution problem, tks again robertogozzi

    #212170

    Let’s try to improve our code a little bit, some one can help me on line 50 to 54 ? I want to add an condition if our equity go down with X% (Drawdown) we have to stop the strategy :

    #212171

    or this solution for max drawdown but sill not working :

    #212174

    I found this solution for the maximum Drawdown, I save at every candle the highest equity I get in HighestEquity variable and compare with the current candle equity for quit if we got more then MaxDrawDownPercentage % :

    But this is woking good only after the position is closed, if some one can give me a help with the case if we are in the market for calculate the real PROFIT before closing a position in real time, because even we use a Stop Loss I think because we use only one time frame we can get some surprise, or maybe some good link for the equity management

    #212186

    @Moderator
    I did a small mistake so maybe you can delete for me my message number: #212170 (or give me the possibility to edit it)

    #212192

    Hi every one,

    So as you can see I did a mistake in the message number #212170, So now there is agan the original code or the first strategie “End Of Day – YEN M15” we are talking about (Knowing that I don’t really believe in this strategy or understand it well, but it is necessary to start from a base to work and improve the code and therefore my programming on ProBuilder)

    and there is the result with :
    USD/JPY Mini
    Initial Capital : 100000 JPY
    Test on a candle history of : 50K
    Spread : 2

    Here are the results of the original strategy without any modifications (see photo)

    #212196

    Someone can tell me why there is a difference between the result of equity of : 202 880 JPY and 193 670 JPY, maybe the spread fees is calculated only in the detailed report ?

    #212201

    lets start with some backtest with a max DrowDawn of 5%, the result is -5,64% from the equity, you can see the screen short

    #212204

    with a max DrowDawn of 10%, the result is -10,51% from the equity, you can see the screen short

    #212206

    with a max DrowDawn of 20%, the result is -20,77% from the equity, you can see the screen short

    #212209

    with a max DrowDawn of 40%, the result is +100% from the equity, you can see the screen short

Viewing 15 posts - 1 through 15 (of 96 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login