Is there a way to share an indicator on Tradovate?
Yes, thatâs how you downloaded the indicators that you have actually. But I think that maybe what you want is to share a template. Hereâs a link to a template that uses those two indicators overlaid.
Ah yes, I see, doesnât quite pan out the same as TOS. I wonder how TOS auto normalizes this. That is a bummer.
Thank you soo much for your help Alex, it is greatly appreciated!
Well, what they actually do is they use this formula on each point ((Xcurrent - Xmin) / (Xmax - Xmin)) * 100 which gives a percent value between 0-100 and pair it with RSI that is already between 0-100. You could make a custom indicator that performed that function fairly easily by modifying the existing code. The absolute simplest way would be to take that 3/10 indicatorâs code and apply this formula to the SlowLine
output.
Youâve inspired me. I created a Higher-Order-Indicator called toPercent
. When used in a worksheet it allows you to take any input and turn it into a value between 0-100 based on its min and max values.
Usage:
You do realize that I may as well be reading Chinese. âYour input hereâ? I canât even get a simple worksheet to work! Please send the template, SOS.
Same link, I updated the template.
I KNOW how coders are. It took me yrs to get anything accomplished with TOS code and even now I struggle. I seem in a hurry because I only have the trial version until Friday. I want this to work but if I canât get it to I will have to stay with TOS. Iâve tried trading using it just for execution, hoping that would suffice but its awful. Anyway, this is why I am in a hurry.
No worries, hope that indicator helps you out. Does that look more like the version you have on TOS?
No slowline appeared on this one. I canât tell if youâre getting these as your face isnât appearing to the right of my replies.
Try this one link
If that doesnât work, ensure you also have the Percent Conversion indicator installed that I linked further up in the thread
Here is the setup I have when I add the worksheet to the chart. I ensure to choose the âAdd asâŚâ â âAreaâ setting with âLDTSTOCHASTICRSIâ as the target area.
Result for me:
Hello Alexander,
Thanks so much for providing some information about your âtoPercentâ indicator
I was looking for a way to Normalize the result of an indicator.
Can you explain what parameter I need to pass to the toPercent indicator ? I donât kow java script very well, but am I assuming correctly that I have to expose the parameters here in my code ==>
in the init section (for example)
init() {
this.fastSMA = SMA(this.props.fastLength)
this.slowSMA = SMA(this.props.slowLength)
this.MAOfDiff = SMA(this.props.MALength)
}
and then in the module export ==>
module.exports = {
params: {
fastLength: predef.paramSpecs.period(3),
slowLength: predef.paramSpecs.period(10),
MALength: predef.paramSpecs.period(16)
},
So that these values can be passed to the toPercent indicator?
And finally, my last quesion is;
How would I include the toPercent code directly in the code of an indicator that I want to normalize so that the Worksheet will not be needed ?
Thank you in advance for any info that you can provide.
Best regards,
JM