Hi
I am new to MC and making a simple strategy that allows trade in certain time range . With each order I place stoploss and take profit orders. It works fine when ticks =1 , but then that sl\tp order doesnt works . Am i calculating sl\tp risk amount wrong??I have attached the code txt file.
I am also facing following errors when this same strategy is run on different symbol.
Advise Transaction 24 Tick AX U3-DT 28.07.13 22:00:00 - 28.07.13 22:00:58
[ERROR] Winros.ini is not found. Make sure eSignal is installed properly.
History Tick/Minute Server could not connect: Invalid Host Name or IP Address
Transaction 24 Status: Offline (28.07.13 22:00:58)
Please guide me for these problems.Thanks
tp\sl execution problem
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: tp\sl execution problem
Hello,
The orders are valid while they are sent by the strategy.
Your special orders (stoploss/take profit) are under condition, i.e. the orders are generated (while they are generated they are valid at broker) only when the condition is met.
You need to make the special orders outside a condition to have the orders valid while there is an open position. More information can be found here:
viewtopic.php?f=19&t=24457&p=77123#p77123
viewtopic.php?f=19&t=40653&p=92673#p92673
The orders are valid while they are sent by the strategy.
Your special orders (stoploss/take profit) are under condition, i.e. the orders are generated (while they are generated they are valid at broker) only when the condition is met.
You need to make the special orders outside a condition to have the orders valid while there is an open position. More information can be found here:
viewtopic.php?f=19&t=24457&p=77123#p77123
Please see the reply in your separate thread:I am also facing following errors when this same strategy is run on different symbol.
Advise Transaction 24 Tick AX U3-DT 28.07.13 22:00:00 - 28.07.13 22:00:58
[ERROR] Winros.ini is not found. Make sure eSignal is installed properly.
History Tick/Minute Server could not connect: Invalid Host Name or IP Address
Transaction 24 Status: Offline (28.07.13 22:00:58)
viewtopic.php?f=19&t=40653&p=92673#p92673
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: tp\sl execution problem
jawedmaha, are you referring to [ERROR] Winros.ini is not found?yup i also have this problem from quit some time