Doesn't buy though condition met?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44173 quote
    DespairDespair
    Blocked
    Master

    I have a strategy that behaves strange. It shall buy if a condition is met but it doesn’t.

    graph con as "cond"
    if cond then
      buy 1 contract at market
    endif

    When I run a backtest graph shows cond=1 but anyway the strategy does not buy. If i move the line with graph behind if (so in the if condition) graph is not executed though I know it is 1.

    Any ideas?

    #44176 quote
    DespairDespair
    Blocked
    Master

    Stupid me found the error and I made the same mistake before…I’m embarrassed. @Nicolas you can delete this thread. LOL

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

Doesn't buy though condition met?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Despair @despair Blocked
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by DespairDespair
9 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/18/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...