barindex problems, strategy starting trade from the first candle?

Forums ProRealTime English forum ProOrder support barindex problems, strategy starting trade from the first candle?

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • #89674

    why I set the system to start trading if barindex > 100 but it keeps starting trade from the first candle???

    where’s the problem??

     

    #89677

    Try below, the default preload bars is 200

    Let us know how you get on?

    PS I guess we can expect a few more WHY’s from you? 🙂 Catchy and memorable username!  🙂

    #89679

    Couldn’t resist a tweak … tried a few and ended up at below to keep it simple.

    Results attached with  spread = 4.

    Need to do some Walk Forward testing, but I’m setting it going on Demo Forward Test as is anyway.

     

     

    #90321

    thanks for your advice, but i have another problem

    i supposed it will buy a contract at the first bar but it didn’t.

    WHY?

     

    #90322

    Try your code without “NOT LONGONMARKET”.

    #90323

    tried, not work

    #90324

    If you want to buy on first bar of the strategy, try with “if barindex<=1”

Viewing 7 posts - 1 through 7 (of 7 total)

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