DislikedNot a hope, sorry. Custom indicators leave me baffled and bewildered, usually unable to extract any useful information from them.
This one, having loaded it onto a chart, I hate on sight.
Ignored
Share trading room photos 2 replies
Share whatever you are willing to share 27 replies
MT Information (Programming, Backtesting, Tips ...) 9 replies
DislikedNot a hope, sorry. Custom indicators leave me baffled and bewildered, usually unable to extract any useful information from them.
This one, having loaded it onto a chart, I hate on sight.
Ignored
Dislikedthanx for your response. by any chance do you know someone who can do it? even if he/she charges me?Ignored
void someFunction(string name, int count) { [tab]for(int myCounter = 0; myCounter < count; myCounter++) [tab]{ [tab][tab]//some statement goes here [tab][tab]//and here [tab][tab]//and here [tab]} [blankline] [tab]// some statement.... }
[tab]for(int myCounter = 0; myCounter < count; myCounter++) [tab][tab]a = b * myCounter;
[tab]for(int myCounter = 0; myCounter < count; myCounter++) [tab]{ [tab][tab]a = b * myCounter; [tab]}
There are 2 styles of brace formatting
One has them as I show them above. I find it helps make code more readable.
The other has them like this
for(int myCounter = 0; myCounter < count; myCounter++) { [tab]blah blah }
newVar1 = someVar1 + [color="Olive"]v2 * ((v3 / v4) - v5)[/color]; newVar2 = someVar2 + [color="Olive"]v2 * ((v3 / v4) - v5)[/color]; newVar4 = sameVar3 + [color="Olive"]v2 * ((v3 / v4) - v5)[/color];
intermedVar = [color="Olive"]v2 * ((v3 / v4) - v5)[/color]; newVar1 = someVar1 + [color="Olive"]intermedVar[/color]; newVar2 = someVar2 + [color="Olive"]intermedVar[/color]; newVar4 = sameVar3 + [color="Olive"]intermedVar[/color];
// assume there are 10,000 bars to process (excessive, I know!) for(int barCounter = 0; barCounter < totalBars; barCounter--) { someCalc1 = var1 * [color="Olive"]v2 * ((v3 / v4) - v5)[/color]; someCalc2 = var2 * [color="Olive"]v2 * ((v3 / v4) - v5)[/color]; someCalc3 = var3 * [color="Olive"]v2 * ((v3 / v4) - v5)[/color]; someCalc4 = var4 * [color="Olive"]v2 * ((v3 / v4) - v5)[/color]; }
// assume there are 10,000 bars to process (excessive, I know!) newVar1 = [color="Olive"]v2 * ((v3 / v4) - v5)[/color]; for(int barCounter = 0; barCounter < totalBars; barCounter--) { someCalc1 = var1 * newVar1; someCalc2 = var2 * newVar1; someCalc3 = var3 * newVar1; someCalc4 = var4 * newVar1; }
ObjectCreate(a_name_0, OBJ_LABEL, 0, 0, 0); ObjectSet(a_name_0, OBJPROP_XDISTANCE, x); ObjectSet(a_name_0, OBJPROP_YDISTANCE, y); ObjectSet(a_name_0, OBJPROP_BACK, FALSE); ObjectSet(a_name_0, OBJPROP_CORNER, 1); ObjectSetText(a_name_0, txt, 12, "Arial", Pink); ObjectCreate(a_name_1, OBJ_LABEL, 0, 0, 0); ObjectSet(a_name_1, OBJPROP_XDISTANCE, x); ObjectSet(a_name_1, OBJPROP_YDISTANCE, y); ObjectSet(a_name_1, OBJPROP_BACK, FALSE); ObjectSet(a_name_1, OBJPROP_CORNER, 1); ObjectSetText(a_name_1, txt, 12, "Arial", Pink); ObjectCreate(a_name_2, OBJ_LABEL, 0, 0, 0); ObjectSet(a_name_2, OBJPROP_XDISTANCE, x); ObjectSet(a_name_2, OBJPROP_YDISTANCE, y); ObjectSet(a_name_2, OBJPROP_BACK, FALSE); ObjectSet(a_name_2, OBJPROP_CORNER, 1); ObjectSetText(a_name_2, txt, 12, "Arial", Pink); ObjectCreate(a_name_3, OBJ_LABEL, 0, 0, 0); ObjectSet(a_name_3, OBJPROP_XDISTANCE, x); ObjectSet(a_name_3, OBJPROP_YDISTANCE, y); ObjectSet(a_name_3, OBJPROP_BACK, FALSE); ObjectSet(a_name_3, OBJPROP_CORNER, 1); ObjectSetText(a_name_3, txt, 12, "Arial", Pink); ... ... repeat lots ... ...
// somewhere at the top of the file extern int fontSize = 12; extern int fontName = "Tahoma"; extern color fontColour = Pink; // These could also be externals... int wnd = 0; int corner = 1; ... ... // then drawLabel("someName1", "This is...", fontSize, fontName, fontColour, wnd, corner); drawLabel("someName2", "This is...", fontSize, fontName, fontColour, wnd, corner); drawLabel("someName3", "This is...", fontSize, fontName, fontColour, wnd, corner); //etc etc void drawLabel(string objName, string txt, int txtFontSize, string txtFontName, color txtColour, int txtWindow, int txtCorner) { ObjectCreate(objName, OBJ_LABEL, txtWindow, 0, 0); ObjectSet(objName, OBJPROP_XDISTANCE, x); ObjectSet(objName, OBJPROP_YDISTANCE, y); ObjectSet(objName, OBJPROP_BACK, FALSE); ObjectSet(objName, OBJPROP_CORNER, txtCorner); ObjectSetText(objName, txt, txtFontSize, txtFontName, txtColour); }
Dislikedhello everyone. hello steve.
just combined between those 2 indicators. the stoch uses here just to measure the scale of the bb movement.
i think one can see that when the bb lines are constricted beneath 25 stoch level, the market is ranging. above that, perhaps the market is trending. 50 level seems to determine most of the normal moves, means above that signifies a strong move. and last- watch what usually happens when the bb lines reach to 90 stoch level.
i think the indicator was coded by hanover. thank you for that. and special thanks...Ignored
Dislikedhello everyone. hello steve.
i wish to introduce you the follow indicator - ma_angle, coded by dim dimytch, which presents the clear value for the angle of the movement, and by that can imply when the market is flat and when it is trending. play with it. i can think of some usages for it my self, and im sure you will find interest in it.
i will mostly appreciate if you could write down which would be the line in icustom function of which will retrieve its value.
thank you.Ignored
extern int ma_per = 5; extern int ma_met = 3; extern color col_ang = AliceBlue; extern int ExtDepth = 21; extern int ext = 0; extern int Complect = 0;
double v = iCustom(NULL, 0, "ma_angle", ma_per, ma_met, col_ang, ExtDepth, ext, Complect, [color=Red]0[/color], [color=Blue]0[/color]);
double MaAngleVal;
MaAngleVal = iCustom(NULL, 0, "ma_angle", ma_per, ma_met, col_ang, ExtDepth, ext, Complect, [color=Red]0[/color], [color=Blue]0[/color]);
AccMoney=AccountBalance(); PipValue=MarketInfo(Symbol(),MODE_TICKVALUE)*10; Spread=MarketInfo(Symbol(),MODE_SPREAD)/10; Lots=((AccMoney/100)*Risk)/(AtrValue*PipValue);