3 trades per day

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

    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
    Razz
    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.

3 trades per day


ProOrder support

New Reply
Author
author-avatar
Razz @razz Participant
Summary

This topic contains 16 replies,
has 5 voices, and was last updated by Razz
6 years, 1 month ago.

Topic Details
Forum: ProOrder support
Language: English
Started: 12/17/2019
Status: Active
Attachments: 5 files
Logo Logo
Loading...