Setting and cancelling buy/stop orders

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #96234 quote
    domfdomf
    Participant
    New

    Hi there,

    I am trying to create some coding for what I believe should be a simple task but I just can not get my coding head around it. Would really appreciate some help.

    This is based on 4hr charts. I have a simple moving average crossover which I wish to trigger a buy order at a price 10 PIPS BELOW the trade price at the point of the crossover. If the price does not drop to that price within the next 2 bars/candles, then I wish to cancel the order.

    Likewise in reverse for a crossover triggering a sell order at a price 10 PIPS ABOVE the trade price. Also to be cancelled if price does not rise to that level within next 2 bars/candles.

    I have read the programming guide and done many forum searches on this, but still can’t find the solution.

    Many thanks

Viewing 1 post (of 1 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

Setting and cancelling buy/stop orders


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
domf @domf Participant
Summary

This topic contains 1 voice and has 0 replies.

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