How to save price level for several pairs and call it back?
Guys How do I code loop for this code?
I want check all six pairs. 1 way is to compose six time this code and just change symbol number but it is too long afterward and looks also to me really inexpensive...
Can anybody help me how to code some Loop for this?
Fantastic rockit!!!
I will utilize loop function also for series and not just for int? Would you explain me what's that for
Inserted Code enum symbol AJ = 0, AU, AC, AN;
I will refer to your original query:
If you check for bullish candle on every tick then you can also check for break over the high in the exact same time and possibly put the HLINE*:
Inserted Code #property stringent enum emblem AJ = 0, AU, AC, AN; series symbol_nameNumber 91;#93; = AUDJPY, AUDUSD, AUDCAD, AUDNZD; void OnTick() int mTF = 60; for(int I = AJ; I lt;= AN; I if((iClose(symbol_nameNumber 91;I#93;, mTF, 1) gt; iOpen(symbol_name#91;I#93;, mTF, 1)) (SymbolInfoDouble(symbol_name#91;t #93;, SYMBOL_BID) gt; iHigh(symbol_name#91;I#93;, mTF, 1))) // put HLINE here }
*Note that in order to not proceed a HLINE around you would also check its price parameter in relation to current price.
Well the enum increases the readability, or perhaps not, in fact it's redundant.
Otherwise you'd need to check for the Amount of components in the symbol_name range as the upper delimiter, i.e.:
Inserted Code for(int I = 0; t lt; ArraySize(symbol_name); I ) ...