Buy 1 Contract at the Low

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17920 quote
    AleSsandroAleSsandro
    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
    tikitakatikitaka
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 tikitakatikitaka
9 years, 9 months ago.

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