Doesn't buy though condition met?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44173 quote
    Despair
    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
    Despair
    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.

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 Despair
8 years, 6 months ago.

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