More on custom idicators
-
Two questions:
I am using the indicator tester to verify the buffers to use. There are five colors for the indicator RSI0MA_V2 (indicator is attached).
Here is a picture showing the outcome that I get (always zero) by setting the value of Indicator Mode to 5: Buffer 5 which is where I expect to see the value show up. http://prntscr.com/6vt0r3
I do not understand how to make this project shared. So, I am attaching a copy of my settings for the indicator tester here: http://prntscr.com/6vt2tm
BTW, setting the value of Indicator Mode to 1: Buffer 1 does give me the value of the blue line from the RSIOMA_V2 indicator.
If I put block 3, 4 & 5 on and then realize they should be under block 6, is that still valid? If not, how are blocks in the project renumbered?
Thanks Very Much
......
RSIOMA_v2.mq4 -
Here is about block numbers: https://fxdreema.com/demo/blocks-execution-order Block numbers matter only when 2 or more connections comes out of the same output. The same as if you drive a car and the road turns into 2 roads.
One parameter is missing from the indicator, because can't understand such definition: http://prntscr.com/6vtz28
You can add some "extern int" to make it workHere is how to make it better:
//---- input parameters extern int RSIOMA = 14; extern ENUM_MA_METHOD RSIOMA_MODE = MODE_EMA; extern ENUM_APPLIED_PRICE RSIOMA_PRICE = PRICE_CLOSE; extern int Ma_RSIOMA = 21; extern ENUM_MA_METHOD Ma_RSIOMA_MODE = MODE_EMA; extern int BuyTrigger = 80; extern int SellTrigger = 20; extern color BuyTriggerColor = DodgerBlue; extern color SellTriggerColor = Magenta; extern int MainTrendLong = 50; extern int MainTrendShort = 50; extern color MainTrendLongColor = Red; extern color MainTrendShortColor = Green;