Breakout Brent crudeoil "copy paste/adjusted"

Viewing 15 posts - 76 through 90 (of 90 total)
  • Author
    Posts
  • #50086 quote
    reb
    Participant
    Master

    Hi Kenneth

     

    you forgot the pic attched 😉

    #50413 quote
    Kenneth Kvistad
    Participant
    Senior

    Oh.. I meant the pic. I posted earlier. But here is the same strategy just reseant update 24. october.2017

    brent-crude-5-min-1.jpg brent-crude-5-min-1.jpg
    #51462 quote
    Kenneth Kvistad
    Participant
    Senior
    #52111 quote
    jebus89
    Participant
    Master

    Hi Kenneth, ive tried to reach out via facebook but no response 🙂 Letting you know here just in case you havnt seen it 🙂

    If you dont want private contact that is of course no problem!

    I’ve been looking at the NQ, and it seems that Long trades are much more profitable then the short ones. but both should be run obviously. Have you considered doing say for example 3 contracts on long trades and 1 on short trades? Or do you have any similar money management strategies for it? 🙂

    #52167 quote
    Yannick
    Participant
    Veteran

    Hello Jebus

    If you analyse the price of Brent,there is a strong bullish bias : Brent and WTI are in a head and shoulders pattern and the target is not reached yet.

    Once the target will be reached, short trades might be more profitable ( I guess).

    For me there is no reason to modify the money management (execpt if you want to stop the algorithm once the target of head and shouders is reached).

    Regards

    Brent.png Brent.png
    #52173 quote
    jebus89
    Participant
    Master

    Yannick: i was thinking about the code for nasdaq 🙂 stock indicies tend to trend up in the long run

     

    But thanks for the input!

    #53217 quote
    Kenneth Kvistad
    Participant
    Senior

    Hi. 

    I have Asked before to help impliment avrage down too my exsisting brent crude 5min strategy. Dispair made one but he implimented other stuff AS ATR stop and tradingtime  .

    Can someone help and wright the right code for take position if price retraces 60pip in wrong direction and still keep same stoploss and trailstop settings AS first initial entry.

     

    It would be soo much preciated.

    #53234 quote
    Yannick
    Participant
    Veteran

    Dear Kenneth

    Try this, as what I backtested, it doesn’t seems to be a good idea

    SET STOP ploss 110//76//116 er også bra
    SET TARGET pPROFIT 100//54//98
    DEFPARAM CumulateOrders = True
    
    //average down
    averagedownvalue=-60
    //valueaveragedown=-averagedownvalue*ordersize*pipsize
    if longonmarket then
    posperf=close-POSITIONPRICE
    endif
    if shortonmarket then
    posperf=positionprice-close
    endif
    
    if not onmarket then
    posperf=0
    endif
    
    if longonmarket and posperf<averagedownvalue and COUNTOFLONGSHARES=Ordersize then
    buy ordersize contract at market
    set stop ploss (110-averagedownvalue)
    SET TARGET pPROFIT (100+averagedownvalue)
    endif
    
    if shortonmarket and positionperf<averagedownvalue and COUNTOFshortSHARES=Ordersize then
    sellshort ordersize contract at market
    set stop ploss (110-averagedownvalue)
    SET TARGET pPROFIT (100+averagedownvalue)
    endif
    graph(posperf)

     

    #53238 quote
    Henrik
    Participant
    Veteran
    Hi! I havent tested it but i think you have to have a better entry for averaging down. Maybe by for longs : -60pips and smi Cross over -45? Or somerhing like that. Havnt got time right now but ill look into it Regards Henrik
    #53240 quote
    Yannick
    Participant
    Veteran

    There is a mistake in my previous code

    SET STOP ploss 110//76//116 er også bra
    SET TARGET pPROFIT 100//54//98
    DEFPARAM CumulateOrders = True
    
    //average down
    averagedownvalue=-60
    //valueaveragedown=-averagedownvalue*ordersize*pipsize
    if longonmarket then
    posperf=close-POSITIONPRICE
    endif
    if shortonmarket then
    posperf=positionprice-close
    endif
    
    if not onmarket then
    posperf=0
    endif
    
    if longonmarket and posperf<averagedownvalue and COUNTOFLONGSHARES=Ordersize then
    buy ordersize contract at market
    set stop ploss (110-averagedownvalue)
    SET TARGET pPROFIT (100+averagedownvalue)
    endif
    
    if shortonmarket and posperf<averagedownvalue and COUNTOFshortSHARES=Ordersize then
    sellshort ordersize contract at market
    set stop ploss (110-averagedownvalue)
    SET TARGET pPROFIT (100+averagedownvalue)
    endif
    graph(posperf)

     

    #53243 quote
    Kenneth Kvistad
    Participant
    Senior

    Thanx yannick.

     

    I null Try this later tonight.

    Henrik, you need to look at the startegy and test IT with Sverige down before er can make any assumtions. I know for a fact this should make the strategy More profitable.

    For now I have 90%win rate and alot off these trades do retrace before winning. Offcourse IT might make the risk too high but i null check out tonight.

    #53265 quote
    Kenneth Kvistad
    Participant
    Senior

    Sorry too tell  but the average down kode does not work properly.  

    #63801 quote
    reb
    Participant
    Master
    Hello Kenneth   Did you continue with your code copy/paste adjusted ?   Reb
    #87215 quote
    David Thompson
    Participant
    New
    Hi Help – start time Example code:
    LimitEntryTime = 154500
    StartTime = 161500
    When I enter this section of code to my script I get a SYNTAX variable error – I’m new to this, please help?
    startime.png startime.png
    #87217 quote
    GraHal
    Participant
    Master
    Try
    LimitEntryTime = Time = 154500
    StartTime = Time = 161500
    Ah also I just saw the image of the syntax error … looks like you have not used LimitEntryTime and / or StartTime in your code as a condition to Open / Close a trade etc … this is what the syntax error message is telling you.
Viewing 15 posts - 76 through 90 (of 90 total)
  • You must be logged in to reply to this topic.

Breakout Brent crudeoil "copy paste/adjusted"


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 89 replies,
has 20 voices, and was last updated by GraHal
7 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/10/2016
Status: Active
Attachments: 33 files
Logo Logo
Loading...