Well, managed it on my own in the end. These are the changes I made:
if(ObjectFind("mVL"+ mTimes[j][i]) == -1) ObjectCreate("mVL"+ mTimes[j][i], OBJ_TREND, 0, 0, 0, 0, 0); ObjectSet("mVL"+ mTimes[j][i], OBJPROP_TIME1 , mTimes[j][i]); ObjectSet("mVL"+ mTimes[j][i], OBJPROP_TIME2 , mTimes[j][i]); ObjectSet("mVL"+ mTimes[j][i], OBJPROP_PRICE1 , 500000); ObjectSet("mVL"+ mTimes[j][i], OBJPROP_PRICE2 , 0); ObjectSet("mVL"+ mTimes[j][i], OBJPROP_COLOR , mCol); ObjectSet("mVL"+ mTimes[j][i], OBJPROP_STYLE , mStyle); ObjectSet("mVL"+ mTimes[j][i], OBJPROP_WIDTH, mWidth); ObjectSet("mVL"+ mTimes[j][i], OBJPROP_BACK, true);
Works well so far
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
Hello all,
I could need some help with this modification. I am trying to change the OBJ_VLINE to a OBJ_TREND in order to stop it from drawing the line on the bottom indicator window and only drawing the line on the chart. But I am unsuccesful as my coding skills are basic at best.
Any help would be greatly appreciated.
This is the Indicator, source is ForexFactory
Many thanks