Hi there ,
I got a problem in placing a set of order in the automation trading.
For example,
I started with Market position = 0; and the system generated a “Stop Buy” Order for next bar with a protective Stop loss if the “Stop Buy” order was executed. I am wondering how I may execute this set of order in a proper manner..
Would that be logic to do the following script?
If market position = 0 then
Begin
Buy 1 Contract next bar at 120.5 stop ;
Sell 1 Contract next bar at 117.5 stop ;
End ;
Do you have any suggestion to do what I wanted to do , Please ?
many thks
Kam
Order Placement Logic for If ........done order [SOLVED]
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Order Placement Logic for If ........done order
[FAQ] How to Post Codes (that people can read)
viewtopic.php?f=16&t=11713
viewtopic.php?f=16&t=11713
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Order Placement Logic for If ........done order [SOLVED]
look upHi there ,
I got a problem in placing a set of order in the automation trading.
For example,
I started with Market position = 0; and the system generated a “Stop Buy” Order for next bar with a protective Stop loss if the “Stop Buy” order was executed. I am wondering how I may execute this set of order in a proper manner..
Would that be logic to do the following script?
If market position = 0 then
Begin
Buy 1 Contract next bar at 120.5 stop ;
Sell 1 Contract next bar at 117.5 stop ;
End ;
Do you have any suggestion to do what I wanted to do , Please ?
any thks
Kam
SetStopLoss
Re: Order Placement Logic for If ........done order
Hi TJ.
Shall I be doing the following script ??
If marketposition = 0 then
Begin
Buy 1 Contract next bar at 120.5 stop ;
Setstoploss at 117.50 ;
End ;
Many Thks
Kam
Shall I be doing the following script ??
If marketposition = 0 then
Begin
Buy 1 Contract next bar at 120.5 stop ;
Setstoploss at 117.50 ;
End ;
Many Thks
Kam
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Order Placement Logic for If ........done order
Please read both of my posts again.Hi TJ.
Shall I be doing the following script ??
If marketposition = 0 then
Begin
Buy 1 Contract next bar at 120.5 stop ;
Setstoploss at 117.50 ;
End ;
Many Thks
Kam