Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Simulated price curves
Collapse
X
-
Simulated price curves
Is it possible to generate simulated price curves in order check the appearance of technical indicators ? I would find it extremely useful to be able to generate say a simple sine curve simulating an actual price curve, over which I could then lay different indicators, e.g. SMA, Stochastics, RSI etc. in order to see the results. In addition to a sine curve, it would be useful to be able to generate a square wave, sawtooth wave and other wave forms.Tags: None
-
Hi whitegate, welcome to our forums. You could look into creating that as an indicator series for example and then be able to drive that as input series to other indicators, for example Stochastics.
One idea for a sample calculation would be -
double value = (0.25 * Math.Sin((2 * Math.PI * CurrentBar * 20) / 1000));
-
Thank you for your reply Bertrand - greatly appreciated. I guess I will first of all need to study and learn NinjaScript in order to carry out your suggestion. Coming from a strictly 'non-computing' background, this may present some difficulties. At the moment, I am developing my required simulation in MS Excel, which is giving me more or less the results I need. However, thanks again for your suggestion.
Whitegate
Comment
-
Program them as indicators or an indicator with options for the waveform.Originally posted by whitegate View PostIs it possible to generate simulated price curves in order check the appearance of technical indicators ? I would find it extremely useful to be able to generate say a simple sine curve simulating an actual price curve, over which I could then lay different indicators, e.g. SMA, Stochastics, RSI etc. in order to see the results. In addition to a sine curve, it would be useful to be able to generate a square wave, sawtooth wave and other wave forms.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, Yesterday, 11:51 AM
|
0 responses
17 views
0 likes
|
Last Post
by CarlTrading
Yesterday, 11:51 AM
|
||
|
Started by CarlTrading, Yesterday, 11:48 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
Yesterday, 11:48 AM
|
||
|
Started by CaptainJack, 03-25-2026, 09:53 PM
|
0 responses
27 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:53 PM
|
||
|
Started by CaptainJack, 03-25-2026, 09:51 PM
|
0 responses
14 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:51 PM
|
||
|
Started by Mindset, 03-23-2026, 11:13 AM
|
0 responses
21 views
0 likes
|
Last Post
by Mindset
03-23-2026, 11:13 AM
|

Comment