FXDD - New ECN Spreads, Outstanding Customer service

How can I add capability to my EA to close all the open positions and DO NOTHING in specific circumstances

Back to topics list To post a new topic, please log in or register
CyrusTheGreat 2011.02.16 15:24

All of EA's that I have worked with open ie. long position and when condition changes close the open position and goes for short position right a way. There is always another condition that EA should close all the open positions and simply do NOTHING. Can you guide me how can I add this capability to my codes?

Crude Oil Weekly Outlook - descending triangle pattern was formed for the bearish breakdown
Weekly price is on bearish market condition with below of 100-period SMA and 200-period SMA: the price is on secondary ranging within 54.00 key resistance level and 42.18 key support level; bullish reversal level for Crude Oil is 69.57; if the price breaks this level from below to above so the reversal of the price movement from the primary bearish to the primary bullish condition may be started; intermediate support level for the price on the way to the key support is 43.
ubzen 2011.02.16 16:17 #
Stop using stop & reverse logic. You can tell it to Buy when X=true/1 and Sell when X=false/-1. Personally, I like to use integers instead of Bool for my Trigger. You can also do things like set the Trigger to 0 when closing orders.
Back to topics list  

To add comments, please log in or register