Menu
Brokers
MT4 Forex Brokers
MT5 Forex brokers
PayPal Brokers
Skrill Brokers
Oil Trading Brokers
Gold Trading Brokers
Web Browser Platform
Brokers with CFD Trading
ECN Brokers
Bitcoin FX Brokers
PAMM Forex Brokers
With Cent Accounts
With High Leverage
Cryptocurrency Brokers
Forums
All threads
New threads
New posts
Trending
Search forums
What's new
New threads
New posts
Latest activity
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Reply to thread
Forums
Trading Platforms
MetaTrader 5
indicator not showing
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
[QUOTE="samjesse, post: 21820, member: 11960"] thx for that. I got it to work, now I tired to modify it with my "real" indicator but this is not plotting. Please take another look :) thx [code=mql5] #property indicator_chart_window #property indicator_buffers 1 #property indicator_plots 1 #property indicator_label1 "alosh" #property indicator_type1 DRAW_LINE #property indicator_color1 Red #property indicator_style1 STYLE_SOLID #property indicator_width1 1 double rlBuffer [300]; CLASS_TYPE h4_alosh("GBPJPY", PERIOD_H4); int OnInit() { //--- indicator buffers mapping SetIndexBuffer(0,rlBuffer,INDICATOR_DATA); ArrayInitialize(rlBuffer,EMPTY_VALUE); h4_alosh.set_SOMTHIN(); h4_alosh.set_ANOTHER(); //--- return(0); } int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { h4_alosh.get_POPULATE_INDICATOR(2, rlBuffer, false); ushort n = ArraySize(rlBuffer)-1; for(ushort i=0; i<=50; i++) Alert("index, value=== " + i + " " +rlBuffer[i]); //n-i // YES IT PRINTED THE VALUES SUITABLE FOR PLOTTING. //--- return value of prev_calculated for next call return(rates_total); } [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Top
Bottom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…