need some insights on my newb system

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #163610 quote
    nonetheless
    Participant
    Master

    First thing to try is tick the box for Readjust Stops when you launch your system. This will keep your Stoploss within the IG minimum distance, but not sure if it also adjusts for Stop Orders ??

    If that doesn’t help then you’d have to post the code.

    readjust-stops.jpg readjust-stops.jpg
    #163614 quote
    SweZerk
    Participant
    Junior

    thx im trying it now

    #163673 quote
    SweZerk
    Participant
    Junior

    all my systems are still stopped but for a diffrent reason now : another order is trying to fill that order ( crapy swedish translate)

     

    here is one of my shit systems for omxs30 1 min

    IF c2 THEN
    SELL AT MARKET
    ENDIF
    
    
    
    // Stops and targets
    SET STOP pLOSS 200
    SET TARGET pPROFIT 200
    
    //%trailing stop function
    trailingPercent = .45
    stepPercent = .01
    if onmarket then
    trailingstart = tradeprice(1)*(trailingpercent/100) //trailing will start @trailingstart points profit
    trailingstep = tradeprice(1)*(stepPercent/100) //% step to move the stoploss
    endif
     
    //reset the stoploss value
    IF NOT ONMARKET THEN
    newSL=0
    ENDIF
     
    //manage long positions
    IF LONGONMARKET THEN
    //first move (breakeven)
    IF newSL=0 AND close-tradeprice(1)>=trailingstart THEN
    newSL = tradeprice(1)+trailingstep
    ENDIF
    //next moves
    IF newSL>0 AND close-newSL>trailingstep THEN
    newSL = newSL+trailingstep
    ENDIF
    ENDIF
     
    //manage short positions
    IF SHORTONMARKET THEN
    //first move (breakeven)
    IF newSL=0 AND tradeprice(1)-close>=trailingstart THEN
    newSL = tradeprice(1)-trailingstep
    ENDIF
    //next moves
    IF newSL>0 AND newSL-close>trailingstep THEN
    newSL = newSL-trailingstep
    ENDIF
    ENDIF
     
    //stop order to exit the positions
    IF newSL>0 THEN
    SELL AT newSL STOP
    EXITSHORT AT newSL STOP
    ENDIF
    
    
    //************************************************************************

    also wounder if its possible to make it have a limit to say 10 positions at once. cant realy hold 60+ contracts at a time

    #163681 quote
    GraHal
    Participant
    Master

     

    another order is trying to fill that order

    You must have lots of Systems with the same entry criteria and we cannot open 2  trades on the same instrument  in the same direction at the same time of trade opening.

    Usually what happens is that the System tries to open again a second later … up to 10 tries then the System is stopped.

    #163683 quote
    GraHal
    Participant
    Master

    have a limit to say 10 positions at once

    Use below and you will stop at Position Size = 1 and this will also likely reduce lots of instances of the problem mentioned above.
    https://www.prorealcode.com/documentation/cumulateorders/

    #163686 quote
    SweZerk
    Participant
    Junior

    aha  okay, ye i got allot of the samesystem just trying diffrent stop/take profit models. but i still want it to get allot of trades but not to meny and not on the exact same signal/time

    #163689 quote
    GraHal
    Participant
    Master

    Im my opinion, it is best to develop a profitable System taking 1 trade only as this shows the System true worth?

    Then increase position size as you wish.

    Assuming you are testing on Demo, would you have the funds to support an eventual LIVE multi-position size System anyway? Or if you do have the funds, would you sleep at night with the risk of multi-position drawdown / Account blow-up??

    #163697 quote
    SweZerk
    Participant
    Junior

    yes i run them in demo currently, i want it to mimic my daytrading so going up and down in size is very important.

    yes i have founds to support it but rn one of my system is around 370 contracts per day wich is a little high for me, maby down to 20 per day or something like that

    GraHal thanked this post
    #163935 quote
    migelrack
    Blocked
    New

    It’s so hard for meaning. I advise just contact to a software development company. I hope you find a very professional team, high-quality code, and speed of project development.

Viewing 9 posts - 16 through 24 (of 24 total)
  • You must be logged in to reply to this topic.

need some insights on my newb system


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
SweZerk @swezerk Participant
Summary

This topic contains 23 replies,
has 6 voices, and was last updated by migelrack
4 years, 11 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/05/2021
Status: Active
Attachments: 6 files
Logo Logo
Loading...