my journey with prt

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #68404 quote
    theLeprechaun
    Participant
    Junior

    I think that maybe I have a special gift to get ridiculous testing results.

    So I will post some of those from time to time.

    My coding performance is really limited and normally I want to go fully automated but so far I can’t get the code I need. I will ask for help and in return, I will show you my fabulous testing results and yes, you can laugh at me. 🙂

    The one from today are the results of 10 days of trading on one min chart with my broken code.

    #68426 quote
    robertogozzi
    Moderator
    Master

    I can’t understand what the point is… did you expect more than 24% in a week or maybe you are overly happy owing to your brilliant strategy?

    #68439 quote
    Inertia
    Participant
    Master

    Yes indeed, with all my respect, I feel a little bit of ironie in the air here…

    Brother, remain humble regarding your “potential and punctual” results…

    Posting result only without the associated code may not be really useful for the community….

    Help you will always fin here 😉

    May the force be with you !

    #68444 quote
    theLeprechaun
    Participant
    Junior

    the irony is toward me, to my coding skills, because I can crash the platform on a monthly basis. Maybe after you will see the attachments it will be clear because it may be looking like the Holy Grail at first but definitely it’s not.

    I was trying to make a short strategy and somehow I got this. No idea why is opening only buy positions while I wanted to go for the short positions.

    It seems that I really need to watch the tutorials. Anyway, still doesn’t make any sense to me what’s happening on this strategy.

    #68447 quote
    Eric
    Participant
    Master
    #68448 quote
    GraHal
    Participant
    Master

    Hi theLeprechaun

    See that blue button (far right top toolbar on a new message) if you add your code using this then I / we can run your code and either share in your holy grail or help re your question below … 

    No idea why is opening only buy positions while I wanted to go for the short positions.

    Cheers
    GraHal
    PS Just thought of easier way (for future) to explain re Insert PRC Code  button … attach an image! 🙂

    #68451 quote
    theLeprechaun
    Participant
    Junior
    // Definition of code parameters
    DEFPARAM CumulateOrders = true // Cumulating positions deactivated
    
    // Prevents the system from creating new orders to enter the market or increase position size before the specified time
    noEntryBeforeTime = 080000
    timeEnterBefore = time >= noEntryBeforeTime
    
    // Prevents the system from placing new orders to enter the market or increase position size after the specified time
    noEntryAfterTime = 180000
    timeEnterAfter = time < noEntryAfterTime
    
    // Prevents the system from placing new orders on specified days of the week
    daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
    
    
    // Conditions to enter short positions
    indicator1 = Average[25](close)
    indicator2 = Average[75](close)
    c1 = (indicator1 CROSSES under indicator2)
    
    IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN
    SELL 1 CONTRACTS AT MARKET
    ENDIF
    
    // Conditions to exit short positions
    indicator3 = Average[25](close)
    indicator4 = Average[80](close)
    c2 = (indicator3 CROSSES over indicator4)
    
    IF c2 THEN
    BUY AT MARKET
    ENDIF
    
    #68453 quote
    Eric
    Participant
    Master
    #68457 quote
    robertogozzi
    Moderator
    Master
    // Definition of code parameters
    DEFPARAM CumulateOrders = true // Cumulating positions deactivated
     
    // Prevents the system from creating new orders to enter the market or increase position size before the specified time
    noEntryBeforeTime = 080000
    timeEnterBefore = time >= noEntryBeforeTime
     
    // Prevents the system from placing new orders to enter the market or increase position size after the specified time
    noEntryAfterTime = 180000
    timeEnterAfter = time < noEntryAfterTime
     
    // Prevents the system from placing new orders on specified days of the week
    daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
     
     
    // Conditions to enter short positions
    indicator1 = Average[25](close)
    indicator2 = Average[75](close)
    c1 = (indicator1 CROSSES under indicator2)
     
    IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN
       SELLSHORT 1 CONTRACT AT MARKET  //SELL 1 CONTRACTS AT MARKET
    ENDIF
     
    // Conditions to exit short positions
    indicator3 = Average[25](close)
    indicator4 = Average[80](close)
    c2 = (indicator3 CROSSES over indicator4)
     
    IF c2 THEN
       EXITSHORT AT MARKET   //BUY AT MARKET
    ENDIF

    This is how you should deal with SHORT trades.

    BUY/SELL are used to enter/exit LONG trades.

    SELLSHORT/EXITSHORT need to be used to enter/exit SHORT trades.

    #68458 quote
    GraHal
    Participant
    Master

    If you make the – False & Sellshort – change as below then on DAX 10 Mins you get results attached ( at spread = 2).

    DEFPARAM CumulateOrders = False
    
    indicator1 = Average[25](close)
    indicator2 = Average[75](close)
    c1 = (indicator1 CROSSES under indicator2)
     
    IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN
    SELLSHORT 1 CONTRACTS AT MARKET
    ENDIF
    #68462 quote
    GraHal
    Participant
    Master

    Sorry I couldn’t resist, hope it might encourage you Lep?  🙂

    With Indicators at values (50, 85) then you get the curve as attached on DAX 10 Mins at spread = 2 and Lot size = 1

    #68467 quote
    theLeprechaun
    Participant
    Junior

    thx, I know, it’s addictive.

    I’m testing quite a few strategies and somehow it seems that the simple ones are the best.

    But, at the end of the day, it seems that the only problem is me – not respecting the strategy, so I need to go automated.

    Unfortunately, is difficult to test 4-6 strategies on a live account because of the minimum size required by IG, if something is going wrong it can blow your account quite quickly. With FXCM would be easier as they accept micro lots but unfortunately, PRT code doesn’t work there.

    #68476 quote
    GraHal
    Participant
    Master

    Test on the Demo account provided by IG?

    You have got a Demo Account?? Or maybe you are not using it??

    #68478 quote
    robertogozzi
    Moderator
    Master

    You can turn to mini or micro contracts (Dax5, Dax1, instead of Dax25, or EurUsd-mini….).

    #68486 quote
    theLeprechaun
    Participant
    Junior

    the demo account balance is kinda of 0….some of the strategies tested before there didn’t work too well

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

my journey with prt


ProOrder support

New Reply
Author
Summary

This topic contains 17 replies,
has 5 voices, and was last updated by theLeprechaun
7 years, 9 months ago.

Topic Details
Forum: ProOrder support
Language: English
Started: 04/15/2018
Status: Active
Attachments: 7 files
Logo Logo
Loading...