Forex
Google
New signals service!

Go Back   Forex Trading > Programming > Metatrader Programming


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 08-23-2007, 08:38 AM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 261
mladen is on a distinguished road
The lates

The latest version of RSIOMA
Attached Files
File Type: mq4 RSIOMA_v2HHLSX__rev.mq4 (6.9 KB, 94 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 08-23-2007, 09:03 AM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 693
Kalenzo is on a distinguished road
Quote:
Originally Posted by fxbs View Post
This means - Kalenzo gives GreenLight on arsioma v3
your version, Mladen!
Sure. Mladen is doing well.
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................
http://www.fxservice.eu/
........................................
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 08-23-2007, 09:24 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 1,735
fxbs is on a distinguished road
Quote:
Originally Posted by mladen View Post
The latest version of RSIOMA
Yepp - BarCount, buff. EmptyVal - all here
Thank You, Mladen!

Let me jus put Signal in our pretty buffer and our beloved Rsioma got brand new v3 - Voala!
[i'll post it here & Rsioma thread later today]

Thanks again, Mladen!
P/S. & pretty informative thread (HowTo - opening PandoraBox), don't u think?

Last edited by fxbs; 08-23-2007 at 09:28 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 08-23-2007, 09:31 AM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 261
mladen is on a distinguished road
...

Quote:
Originally Posted by fxbs View Post
Yepp - BarCount, buff. EmptyVal - all here
Thank You, Mladen!

Let me jus put Signal in our pretty buffer and our beloved Rsioma got brand new v3 - Voala!
[i'll post it here & Rsioma thread later today]

Thanks again, Mladen!
P/S. & pretty informative thread (HowTo - opening PandoraBox), don't u think?
O yeah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 08-26-2007, 06:02 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 1,735
fxbs is on a distinguished road
not that box, other box
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 09-01-2007, 03:25 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 1,735
fxbs is on a distinguished road
OK, 11 temp. versions later, final cut:

____________________
extern int RSIOMA = 14;
extern int RSIOMA_MODE = MODE_EMA;
extern int RSIOMA_PRICE = PRICE_CLOSE;
extern int Ma_RSIOMA = 21;
extern int Ma_RSIOMA_MODE = MODE_EMA;

extern int BarsToCount = 500;

//---- buffers
// "fake indexes"
double MABuffer1[];
double RSIBuffer1[];
// indexes
double RSIBuffer[];
double marsioma[];

int correction;
datetime lastBarTime;
string short_name;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
short_name = StringConcatenate("RSIOMA[",RSIOMA,"](",Ma_RSIOMA,")");
IndicatorShortName(short_name);

SetIndexBuffer(0,RSIBuffer);
SetIndexBuffer(1,marsioma);

// additional buffer(s)

correction = RSIOMA+RSIOMA+Ma_RSIOMA;
BarsToCount = MathMin(Bars,MathMax(BarsToCount,300));
ArrayResize( MABuffer1 ,BarsToCount+correction);
ArrayResize( RSIBuffer1,BarsToCount+correction);
ArraySetAsSeries(MABuffer1 ,true);
ArraySetAsSeries(RSIBuffer1,true);
lastBarTime = EMPTY_VALUE;

return(0);
}
//+------------------------------------------------------------------+
int start()
{
static bool init=false;
int counted_bars=IndicatorCounted();
int limit,i=0;

if(counted_bars<0) return(-1);
if(lastBarTime != Time[0]) {
lastBarTime = Time[0];
counted_bars = 0;
}
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
limit=MathMin(limit,BarsToCount+correction);

for(i=limit;i>=0;i--)
MABuffer1[i] = iMA(Symbol(),0,RSIOMA,0,RSIOMA_MODE,RSIOMA_PRICE,i );
for(i=limit;i>=0;i--)
RSIBuffer1[i] = iRSIOnArray(MABuffer1,0,RSIOMA,i);
for(i=limit;i>=0;i--)
{
RSIBuffer[i]= RSIBuffer1[i];
marsioma[i] = iMAOnArray(RSIBuffer1,0,Ma_RSIOMA,0,Ma_RSIOMA_MODE ,i);
}
for (i=0;i<indicator_buffers;i++) SetIndexDrawBegin(i,Bars-BarsToCount);
return(0);
}
//The End +------------------------------------------------------------------+
Attached Files
File Type: mq4 RSIOMA_v3LMA.mq4 (4.1 KB, 67 views)
File Type: mq4 RSIOMA_v3.mq4 (7.8 KB, 67 views)

Last edited by fxbs; 09-01-2007 at 03:30 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 03-19-2008, 07:59 AM
Administrator
 
Join Date: Sep 2005
Posts: 15,873
Blog Entries: 54
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Extra buffers (need more thsan 8)?
Some article Multiple Null Bar Re-Count in Some Indicators - MQL4 Articles
and Igorad's indicator http://www.forex-tsd.com/70061-post23.html
Or read whole thread DECEMA - Xmas gift!

Just for information.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 03-19-2008, 11:20 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 1,735
fxbs is on a distinguished road
thank you, ND
good info and links +
- how to add extra buffer (Omelette, Kalenzo) examples
- it's not always necessary add extra buffers - IgorAd's Decema version

Last edited by fxbs; 03-19-2008 at 11:55 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 03-19-2008, 11:57 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 1,735
fxbs is on a distinguished road
hopefully some day we can cheat MT4 and add extra color buffer (not object)!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 03-19-2008, 01:18 PM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 261
mladen is on a distinguished road
...

Actually we, meaning the users of MetaTrader, do need extra buffers for drawing
For calculation there is no limitation whatsoever

Just for the fun of it I post an indicator that is calculating multiple mas (meaning ma of an ma of an ma...) to the level you like it and does it by using buffers - 8 buffers for every 7 levels (first picture), so, with default parameters it uses 28 buffers

Drawing is another thing
If we do not want to use objects to draw values, we are limited to just 8 buffers
Thing like the second "indicator" I post are absolutely impossible in MetaTrader if one wants to use just buffers (second picture)
Just for emas on that chart you would need 27 buffers (RSI on the bottom theoretically achieves 100 shades of red and 100 shades of green, making it draw would need thus at least 200 buffers more) and all that is simply not possible in MetaTrader

What we need is, in my opinion, and I stated it a couple of times, a plot routine that would change the logic of using buffers for drawing (it is really not difficult to imagine how one could retrieve past values)
The number of buffers we can circumvent one way or another, but drawing the way we are forced to do it, is becoming a pain in the ass

PS : none of the indicators posted here is ment to be used in trading
They are posted here only as a demonstration of the things I said in the post
Attached Images
File Type: gif buffers 1.gif (11.6 KB, 103 views)
File Type: gif buffers 2.gif (15.7 KB, 105 views)

Last edited by mladen; 07-21-2008 at 05:02 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unauthorized Extra Charges on may credit statement Navid General Discussion 10 05-11-2007 04:12 PM
MT4 with extra weekend bar woteva Metatrader 4 3 04-30-2007 03:13 AM
Help with buffer limits and flatlining indicator lines iboersma Indicators - Metatrader 4 0 03-22-2007 06:27 PM


All times are GMT. The time now is 06:34 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.