Forum

Can we trap the keypress for PF12 in an Indicator or Expert

I am using PF12 to scroll forward one bar on my chart and would like to be able to capture that event in an indicator or expert in order to control a second chart to keep them in sync. However, I find that there is no keypress event generated for the pressing of PF12. Is there any way to capture

Access Violation

I am getting an access violation in the OnCalculate function It appears to happen when I cover part of the window leaving the leading edge exposed. If I don't cover the window, it appears not to happen 2014.03.24 21:47:01.178 Access violation read to 0x0898A450 in 'C:\Program Files (x86)\MetaTrader

Problem getting angle of a trend line in build 600

The following code has been entered in a CHARTEVENT_OBJECT_CREATE event handler in an indicator #1 ObjectCreate(0, "Angle", OBJ_TRENDBYANGLE, 0, timePt1, pricePt1, timePt2, pricePt2); #2 ObjectSetDouble (0, "Angle", OBJPROP_PRICE2, pricePt2); #3 ObjectSetInteger (0, "Angle", OBJPROP_TIME2, timePt2);

Problem getting angle of a trend line in build 600

The following code has been entered in a CHARTEVENT_OBJECT_CREATE event handler in an indicator #1 ObjectCreate(0, "Angle", OBJ_TRENDBYANGLE, 0, timePt1, pricePt1, timePt2, pricePt2); #2 ObjectSetDouble (0, "Angle", OBJPROP_PRICE2, pricePt2); #3 ObjectSetInteger (0, "Angle", OBJPROP_TIME2