Hello.
I use [IOGMode(IOGMode.Enabled)] in code. Can I define IOG mode option from code? For instance I want to start the study every time with "Allow unlimited entries and exits per bar" option enabled instead "Limit the signal to one......." option.
Thanks.
IOGMode option from code.
- Alex MultiCharts
- Posts: 194
- Joined: 09 Aug 2013
- Has thanked: 43 times
- Been thanked: 77 times
Re: IOGMode option from code.
seems to me that if you define two signals, one with "[IOGMode(IOGMode.Disabled)]" and one with " [IOGMode(IOGMode.Enabled)]".
Then in the "CalcBar" method just use code to by-pass the code for the one and use the "opposite" code for the other...
Not sure if two signals can have different "IOGMode" settings on the same chart... If it is not possible, then use two charts and "sync" the positions when changing modes...
Then in the "CalcBar" method just use code to by-pass the code for the one and use the "opposite" code for the other...
Not sure if two signals can have different "IOGMode" settings on the same chart... If it is not possible, then use two charts and "sync" the positions when changing modes...
- Alex MultiCharts
- Posts: 194
- Joined: 09 Aug 2013
- Has thanked: 43 times
- Been thanked: 77 times
Re: IOGMode option from code.
You can have different IOG settings of the signals applied to the same chart.
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: IOGMode option from code.
I use [IOGMode(IOGMode.Enabled)] in code. Can I define IOG mode option from code? For instance I want to start the study every time with "Allow unlimited entries and exits per bar" option enabled instead "Limit the signal to one......." option.
This is a good idea/suggestion. The accompanying feature request for it is here:No, unfortunately, it is not possible.
MC-1656 - [IOG] Set number of entries per bar programmatically.
Re: IOGMode option from code.
I made a great discovery today.You can have different IOG settings of the signals applied to the same chart.
The order is important.
If you add the signals with IOG ON at the end of list, all signals on the chart will have IOG ON.
If you move the signal with IOG ON to the top, you can mix IOG ON and OFF by having a signal with IOG Disabled in the next column and the signals after that will be Disabled.
I feel better now that I have solved something I have not understood for a long time.
Did you know?