|
Code question
Waddah Attar or MiniMe,
Can you program the EA to enter an instant execution order if the following settings are true.
extern bool InstantOrder = true;
extern string BuyNow_Trend_Info = "_______________________";
extern string BuyNow_TrendName = "Buy@CurrentPriceTrendLine";
extern int BuyNow_TakeProfit = 50;
extern int BuyNow_StopLoss = 30;
extern double BuyNow_Lot = 0.1;
extern int BuyNow_StepActive = 0;
extern int BuyNow_StepPrepare = 0;
extern string SellNow_Trend_Info = "_______________________";
extern string SellNow_TrendName = "Sell@CurrentPriceTrendLine";
extern int SellNow_TakeProfit = 50;
extern int SellNow_StopLoss = 30;
extern double SellNow_Lot = 0.1;
extern int SellNow_StepActive = 0;
extern int SellNow_StepPrepare = 0;
Reason behind the request:
If it is setup this way the EA works great but because it is a pending order my broker rejects the order since they require a 5 pip spread from open price to current price. Can you please program an instant order opiton if the Prepare and Active are both 0?
Brilliant EA by the way....
Thanks for your time and effort.
James
Last edited by proverbs; 06-02-2007 at 12:08 AM.
|