Buy 1 Contract at the Low

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17920 quote
    AleSsandro
    Participant
    New

    Hello Guys,

    just for Testing i want to buy one Contract of DaxMini Future if the low of the Dax reach 16.

    Means 10816, 10716 and so on!

    The Code i wrote is here, problem i get no execution if i Backtest the code. May anyone help me ?

    DailyL = DLow(0)
    ModLo = DailyL mod 100
    mylot = 1
    BuyPrice = DailyL - 6
    
    if DailyL = 16 then
    buy mylot contract at BuyPrice limit
    endif
    
    set stop loss 33
    set target pprofit 21

     

    Thank you for your help in advanced

    AleSsandro

    #17973 quote
    tikitaka
    Participant
    Average

    Hi,

    line 6 should be: if ModLo = 16 then, shouldn’t it?

    Beyond that, I can’t help.

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

Buy 1 Contract at the Low


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
AleSsandro @alessandro Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by tikitaka
9 years, 2 months ago.

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