I have added code to insert missing stops and tp's when they are missing - see the last input in the sl/tp inputs section in post 1.
Added a CloseOnTrendChange input, to close a trade when the trend reverses.
Hi Bob!nanningbob wrote: Thanks for all your help. I have one suggestion for the indi and that is the numbers for the lines need to be bigger. I have a hard time reading them on my screens so when I set my trades I am guessing where they are at or I am going to the low of the candle that caused the line and getting my read that way.
Code: Select all
D1R1 = ( ObjectGet(D1_R1, OBJPROP_PRICE1) + ObjectGet(D1_R1, OBJPROP_PRICE2) ) /2;
Code: Select all
void ReadIndicatorValues()
{
//Read the s/r levels drawn on the chart by sq's indi
D1R1_lo = ObjectGet(D1_R1, OBJPROP_PRICE1);
D1R1_hi = ObjectGet(D1_R1, OBJPROP_PRICE2);
D1R1 = ( D1R1_lo + D1R1_hi ) /2;
D1R2_lo = ObjectGet(D1_R2, OBJPROP_PRICE1);
D1R2_hi = ObjectGet(D1_R2, OBJPROP_PRICE2);
D1R2 = ( D1R2_lo + D1R2_hi ) /2;
D1S1_lo = ObjectGet(D1_S1, OBJPROP_PRICE1);
D1S1_hi = ObjectGet(D1_S1, OBJPROP_PRICE2);
D1S1 = ( D1S1_lo + D1S1_hi ) /2;
D1S2_lo = ObjectGet(D1_S2, OBJPROP_PRICE1);
D1S2_hi = ObjectGet(D1_S2, OBJPROP_PRICE2);
D1S2 = ( D1S2_lo + D1S2_hi ) /2;
}//void ReadIndicatorValues()
Strange. Delete your current version entirely and re-download. Sometimes a download fails even though it appears to succeed.MurphyMan wrote:I'm not getting any trades, not one, but I am being battered by a constant string of "Buy/Sell order send failed with error (130):invalid stops". I have the EA loaded on about 12 pairs.
Any suggestions out there?
Sam
No joy. I deleted the old Empty4 and loaded a fresh one. Even did a registry scan to clear out any old junk. Brand new downloads fro Post #1.SteveHopwood wrote: Strange. Delete your current version entirely and re-download. Sometimes a download fails even though it appears to succeed.