Use 2 Labels
thanks for the response, appreciated.
ok.... i am NOT a coder.... but have modified a few to add push notifications - really just copy codes from one indicator and place in the modified.
not sure exactly what that would look like to add another label
would there be a free service to have the code modified?
any suggestions would be appreciated, thanks.
Barry Simpson:
not sure exactly what that would look like to add another label
Hint:
Instead of just "m.Simp" alone, create "m.Simp.1" and "m.Simp.2", and have different mCorner, mYdist and mXdist values for each of them.
void init() { ObjectCreate("m.Simp", OBJ_LABEL, 0, 0, 0, 0, 0); ObjectSet("m.Simp", OBJPROP_CORNER, mCorner); ObjectSet("m.Simp", OBJPROP_YDISTANCE, mYdist); ObjectSet("m.Simp", OBJPROP_XDISTANCE, mXdist); ObjectSetText("m.Simp", Symbol(), mFontSize, mFont, mCol); ObjectSetText("m.Simp", Period() + "m", mFontSize, mFont, mCol); }
So your last two lines should become:
ObjectSetText("m.Simp.1", Symbol(), mFontSize, mFont, mCol); ObjectSetText("m.Simp.2", Period() + "m", mFontSize, mFont, mCol);
Consider https://www.mql5.com/en/job if the above hint is not obvious enough :).
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
i have an indicator that i am trying to modify.
it shows text output for the current pair chart and the time frame.
both outputs are on the same line.
i would like to have the current pair display over the time frame.
not sure how to change the coding.