3 trades per day

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #115172 quote
    NicolasNicolas
    Keymaster
    Legend

    It has nothing to do with the order count limitation. This is a normal behavior, because you set a pending buy stop order at a price under the actual market price, so this pending order is automatically converted into a market one.

    If you want to prevent this to happen, just add a condition to test if the market price is under your long order threshold price: (and vice-versa for the short order)

    If not onmarket and time>= Startzeit and time < Endzeit and count<3  and Spannepoints < MaxBox  then
     if(close<Hi+(Spread/2)) then 
      BUY Position Lot AT Hi+(Spread/2) Stop
     endif
     if(close>Lo-(Spread/2)) then 
      Sellshort Position Lot AT Lo-(Spread/2) Stop 
     ENDIF
    endif
    #115175 quote
    RazzRazz
    Participant
    Master

    Thank you Nicolas for your help, it is so easy, I would not have thought of it.

Viewing 2 posts - 16 through 17 (of 17 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

3 trades per day


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Razz @razz Participant
Summary

This topic contains 16 replies,
has 5 voices, and was last updated by RazzRazz
6 years, 10 months ago.

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