| / | Forum |
|
rortiz77
2010.06.26 00:08
How can I add an arrow to a fixed position using x,y coordinates? Labels allow you to do that but not the arrows...so what other tricks are there for doing this? |
|
Visual Testing of the Profitability of Indicators and Alerts What indicator of trading alerts or just the methods of their calculating to use is usually decided when testing EAs using these alerts. However, it is not always possible/necessary/reasonable to write an EA for each indicator. You can promptly calculate the profitability of trading on the alerts from other indicators, using a special indicator that collects their alerts itself and draws a picture of ideal trading with them. It can help you both make a visual estimate of the results obtained and quickly choose most optimal parameters. |
|
rortiz77
2010.06.26 00:48
I know that for a label I can use: ObjectCreate("MN1", OBJ_LABEL, 0, 0, 0); ObjectSetText("MN1", "MN1", 10, "Arial", Yellow); ObjectSet("MN1", OBJPROP_CORNER, 4); ObjectSet("MN1", OBJPROP_XDISTANCE, 1127); ObjectSet("MN1", OBJPROP_YDISTANCE, 231); And for objects I can use this: ObjectCreate("SignalSell_"+Time[0], OBJ_ARROW, 0, Time[0], price); ObjectSet("SignalSell_"+Time[0], OBJPROP_ARROWCODE, 234); ObjectSet("SignalSell_"+Time[0], OBJPROP_COLOR, Red); ...but the arrow objects only allow for a position with candlesticks....I want it to stay fixed with an (X,Y) position. Is that possible? |
|
irusoh1
2010.06.26 01:10
Try OBJ_LABEL with "Wingdings" for font and corresponding charcater for arrow |
|
rortiz77
2010.06.26 01:28
irusoh1: Try OBJ_LABEL with "Wingdings" for font and corresponding charcater for arrow
ObjectCreate("MN1", OBJ_LABEL, 0, 0, 0); ObjectSetText("MN1", 74, 10, "Arial", Yellow); // <---where 74 would be the wingding? ObjectSet("MN1", OBJPROP_CORNER, 4); ObjectSet("MN1", OBJPROP_XDISTANCE, 1127); ObjectSet("MN1", OBJPROP_YDISTANCE, 231); Doing so didn't actually change it to a wingding. It just made it not work at all...or am I using the wingding wrong? |
|
rortiz77
2010.06.26 01:49
Sweet, just saw a good example....here's what I did: ObjectCreate("M30", OBJ_LABEL, 0, 0, 0); ObjectSetText("M30", CharToStr(241), 10, "Wingdings", Yellow); ObjectSet("M30", OBJPROP_CORNER, 4); ObjectSet("M30", OBJPROP_XDISTANCE, 1127); ObjectSet("M30", OBJPROP_YDISTANCE, 171); Thanks for the push! |