This should make a shaded area in the future, so use Chart Shift
string name = "Shade"; int init(){ if(ObjectFind(name) == -1) { ObjectCreate(name, OBJ_RECTANGLE, 0, 0, 0, 0); ObjectSet(name, OBJPROP_BACK, 1); } return(0); } int start(){ ObjectSet(name, OBJPROP_PRICE1, Bid); ObjectSet(name, OBJPROP_PRICE2, Ask); ObjectSet(name, OBJPROP_TIME1, Time[0] + Period() * 1 * 60); ObjectSet(name, OBJPROP_TIME2, Time[0] + Period() * 20 * 60); return(0); }
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 was wondering if someone could tell me how to program the following:
I would really like to create a Shaded Area between the Ask Line and Current Price Line (ie, Buy and Sell Price).
This would be great because i would be able to instantly see what the spread is at any given time just by looking at the price chart and also this visual enhancement makes it very easy to see the Buy and Sell price (on the price chart) at any given time.
Any help would be much appreciated.
Thank you