Don't enable “chart on foreground.”
Thanks, but I'm still having trouble. Is there something wrong with my implementation?
int bars = 7; int xyz = ObjectCreate(0,"basepoint",OBJ_RECTANGLE,0,TimeCurrent() - (ChartPeriod(0)*60*(bars))- (ChartPeriod(0)*50) , iOpen(0, 0, bars), TimeCurrent() - (ChartPeriod(0)*60*(bars*10)), iOpen(0, 0, 0)); ChartSetInteger(0,CHART_FOREGROUND, false); ChartSetInteger(0,CHART_BRING_TO_TOP, false); ObjectSet ("basepoint", OBJPROP_COLOR, Blue); ObjectSetInteger(0,"basepoint", OBJPROP_ZORDER, 1000); ObjectSetInteger(0,"basepoint",OBJPROP_BACK, true);
hknight555 #:
Thanks, but I'm still having trouble. Is there something wrong with my implementation?
Forum on trading, automated trading systems and testing trading strategies
ZORDER: Getting Rectangle To Show On Top
William Roeder, 2023.03.05 13:58
Don't enable “chart on foreground.”I've checked the program settings. It is still showing in the back layer. Here is the complete code, along with a screenshot:
void init() { ObjectsDeleteAll(); int bars = 7; int xyz = ObjectCreate(0,"basepoint",OBJ_RECTANGLE,0,iTime(NULL, 0, bars-5) , iOpen(0, 0, bars), iTime(NULL, 0, bars), iOpen(0, 0, 0)); ObjectSetInteger(0, "basepoint", OBJPROP_COLOR, Blue); ObjectSetInteger(0, "basepoint", OBJPROP_ZORDER, 1000); ObjectSetInteger(0, "basepoint", OBJPROP_BACK, true); ChartSetInteger(0,CHART_BRING_TO_TOP, false); ChartSetInteger(0,CHART_FOREGROUND, false); ChartSetInteger(0,CHART_MODE, 1); ChartSetInteger(0,CHART_SCALE, 5); }
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
How can I get the rectangle to show up on top of the bars instead of behind them? Setting the zorder does not seem to work.