50 Pips A Day Forex

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #96261 quote
    Vonasi
    Moderator
    Master

    See – I did say ‘Not really easy – but possible’ in my first reply and I wasn’t wrong. I learnt one or two things about ProOrder, MTF and trading on 1 second time frames along the way so it wasn’t all wasted effort.

    #96296 quote
    therookie
    Participant
    Junior

    Hmm…so I copied this code into ProBacktest. First it says that the variable x is not defined (there is an x in line 5). I simply removed this line (maybe it’s not even supposed to be there??). Anyway after I try to run the backtest I get an error, please see the attached picture.

    error.jpg error.jpg
    #96316 quote
    Vonasi
    Moderator
    Master

    Sorry I was optimizing the strategy and testing what difference various settings for shortcandle made (not a lot) and forgot to delete the /x when I posted the code. I have edited my last post and so if you now cut and paste the code it should work.

    You must run the strategy on a 1 second chart. If not then that is the reason for the error message that you posted the image of.

    therookie thanked this post
    #96319 quote
    therookie
    Participant
    Junior

    Great Vonasi! Thank you so much and I’m happy you got something out of this too.

    I just had a question out of pure interest. How come you chose the second timeframe to be 1 second and lets say not 1 minute instead? Was it because high volatility would maybe then go both short and long during 1 minute?

    The reason I am asking is because, even though I am sure the system will work live, there is not really a way to back test it like this right? A 1 second chart will show too little data to effectively backtest it right?

    #96321 quote
    Vonasi
    Moderator
    Master

    Yes I chose 1 second because that way as soon as a trade is opened the other order is cancelled as soon as possible. Yes you could stretch it out to other time frames but the slower the time frame the more risk that trades in both directions could be opened.

    This is one of the current limitations of MTF codes – very little backtest data on fast time frames. I believe v11 will be better in this regard. To be honest most back tests are not very accurate as we have to use a fixed spread and in real life spread is not fixed and has not been exactly the same spread since the year dot.

    The 1 hour version that I wrote does a pretty good job of simulating how the strategy would perform in a back test but live forward testing is always preferable to back testing. To do this just run the strategy live in your demo account on a 1 second time frame by clicking the ‘Automatic Trading’ tab in the programming window.

    Screenshot_1-3.png Screenshot_1-3.png
    #96326 quote
    therookie
    Participant
    Junior

    Yes will do! You’re awesome and thanks for the explanations and help.

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

50 Pips A Day Forex


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
therookie @prophet85 Participant
Summary

This topic contains 20 replies,
has 3 voices, and was last updated by therookie
6 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/11/2019
Status: Active
Attachments: 5 files
Logo Logo
Loading...