I am really lost. Is there a simple way of coding an indicator using QS language without coding in C#???
I understand you can add a pane>edit formula and type in a formula.That appears to go into the Formula list,unless I am mistaken.If I click on the + (add a function)in a pane,my indicator will not appear.
How does one SIMPLY code using QS language so their indicator will show up when one clicks on +(add a function)
It appears there is no way,and one must use C#.Am I correct?
If I am correct,when I create a formula(add pane>edit formula) can that formula be accessed in screens and backtests??It doesnt look like it.Other than graph that formula,what can I do with it?
I am afraid that using C# at this point is above my head.I could probably figure it out if I was using fields like Rsi(14).Where I am getting very confused is attempting to create a custom indicator from the code above.I did create a formula(edit function) of HisVol
I dont quite understand formula vs custom indicator.It doesnt appear I can reference a custom formula when creating a custom indicator.Would you be kind enough to show me how one creates a custom indicator for the formula above?I did try using
VectorD a = TA.HisVoli(period);
result = a;
(I substituted Ta.HisVol for Rsi(14) in the example)
Also,the button you instructed to click on is next to Add method,not Add Indicator.
That is extremely helpful.
Is one example J script and the other C#??They are both fairly easy to work with
I am downloading custom indicators and going over different examples.
When I am coding a system and select "Load Formula"( the HisVol formula I created in formulas),it deletes any code I have written.Does that have something to do with the Lock/Unlock button?
Am I correct that if one wants to code custom formula/indicator without c# or jscript,one may do so by using "Edit Formula".The only way to do that is by adding a pane and "Edit Formula".I dont see this explained in any of the documentation.Did I overlook it?
Thanks for all the help.Its starting to make sense!
I find "Load Fprmula" to be very confusing if it REPLACES the existing formula. "Load" a formula,should not delete everything one has coded..FYI the same thing happened in screener.Having a "Save Formula" is nice,but you really arent adressing the issue.Load does not equal replace.Keep it simple.
Also,when I click on the shortcut button and select Indicators,it brings up" Formulas".If they arent indicators and are Formulas,why dont you label the button Formula?????? Its way too confusing,but I finally am understanding the interface.
Finally got it to work.. ended up creating all three indicators in one indicator.
Now the problem i'm facing is using this custom made indicator during simulation/backtesting
The indicator works fine when added to the chart.
buy rule = indicatora > .50
for some reason i'm not getting any trades.
only thing i can think of is that my indicator used "ref(close,1)" etc rather than histoprice.... and since ref.. refers to EOD data... and my backtest is intraday.. that could be the reason why i'm not getting any hits??