MQL custom indicator calling another custom indicator - mql4

I know how to call a custom indicator from an EA but would like to call a custom indicator from another custom indicator which I cannot manage to do. The compiler does not give me any errors. Is this possible to do? Thanks for your help.

Absolutely same approach -
double value=iCustom(Symbol(),Period(),indicator_name,/* custom indicator buffer parameters separated by comma */,buffer,shift); - no difference between ea and indicator

Related

How can I do the progress view with stepping?

now I am conducting a iOS app with objective-c. I need to have a process bar with stepping to indicate the user registration procedure. How can I do it as the pictures?
I have made a custom view to implement the step indicator. Use CAShapeLayer to draw the circle and line. Check detail here: https://github.com/chenyun122/StepIndicator
The effect is:
OR
If you want to replace the core point by number, you could folk this project and modify the class AnnularLayer.swift to implement that.
If animation doesn't matter then you can used image.Change your image when you push view

Creating A Green Matrix Activity Indicator : Swift

I want to create a green matrix activity indicator like this :-
Not exactly like this but something like this to show that i am processing something very important and backend coding is going on. Please provide possible suggest.
I suggest following things:
1) Add this label in your view (https://github.com/buubui/TypeOutAnimationLabel)
2) Set black text background
3) Set text what you want, your text will be animating.

Designing a circular "selector" control

I'm developing an app that calculates poker odds, and now I'm facing some problems with the card selector.
This is a mockup of what I want.
I've found two ways to accomplish this. The first one is to use an entire UIImageView and detect touches, calculate where the touch has been generated, and set the corresponding value.
The second one is to use a lot of UIButtons, but in this case I get problems with the shape of the buttons.
Of course I can use a regular UIPickerView and so on but I think that the one I've designed is better.
if you have a UIButton with a background image that is shaped irregular. then that is the only point that the button can be pressed.
Change the type to custom and put your slices into buttons.
This has been my experience anyhow.
My buttons have to have a .01 alpha background to increase their pad size and people can push the button.
Hope that helps :)
After googled a little i've found https://github.com/ole/OBShapedButton .
it does anything what i need

Make green color UIActionSheet button?

I know I can access a individual button on a actionSheet using a for loop to access the particular button in the action sheet I want, but the thing is, how would I make a green button?
I know each button acts almost identically to a UIButton so how should I go upon making one of my buttons in the action sheet green?
I just need some tips or help with this as it is the last part of my app that isn't done!
Thanks!
When I have needed customizations for UIActionSheets, sometimes I find methods to make it happen simply, but more often I end up having to set up a custom view on way or another. I've added all manners of custom controls with:
[sheet addSubview: myCustomActionSheetController.view];
You might need to set the size as well.

activity indicator in iOS should prevent user from access to other UI elements until it stops animating

My ActivityIndicator comes up at the right time but the user can still press the buttons on the view while processing is occurring. The reason I'm using ActivityIndicator is to prevent such usage.
How do I make sure that during the animation of ActivityIndicator, no UI interaction is possible?
Also, I would prefer that the current view is still displayed to the user(as in I wouldn't prefer having an opaque view of UIActivityIndicator-if that's possible-unless that's the only option)
Check out DSActivityView. It's a one-shot singleton that puts up a modal activity view VERY easily.
Include it in a View Controller, and then before you fire a long-running background process, you go:
[DSBezelActivityView activityViewForView:self.view];
And then when you're done and want to retire it, you go:
[DSBezelActivityView removeViewAnimated:YES];
Lots of configuration options, including the ability to put custom messages in the activity view... It's a great little library that I use ALL the time.
ActivityIndicator's job is to like names says indicate that something goes on, and not to disable all interactions...You should be the one to do that...you could try with setting userInteractionEnabled property to NO.
When everything is finished set it back to YES

Resources