FYI, Just copy-pasting from an older thread
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
In my experience, different indicators answer for different counters.
Followings are some examples of DFN simulations,
①If you use RSI to trade JKH you will ended up with a loss
②Directional Movement(DX) will yield above 2000% gain on CIC, but will not good for counters like BUKI
③Bollinger band is the worst indicator I have ever seen. (This is a comparison of some of the indicators I use)
DFN system tester is a very powerful tools, but unfortunately it seems like only programmers are using this.
I was thinking about posting a different thread about "Strategy Evaluator" but don't think there is much interest on this topic.
You can write your own buy/sell scripts and test with past data.
Followings are some of the test shots.
■Report generated for CIC.N if you use DMI(DX) as a buy/sell signal (It's self explanatory)
■Last buy signal was generated on 2012/9/04 and sell signal on today(2012/10/03)
■To be a billionaire, all you need is to write a killer program. Easier said than done.
DFN doesn't offer much help, but on the bright side there are 3 built in scripts available for you to try.
Following is my Klinger Volume Oscillator.
Above is a bit complex code.
For a starter, following is a simple buy & sell statement for RSI.
// RSI Buy Statement
DataArray RSI = RelativeStrengthIndex(Close, 20) ;
buy(RSI>=65);
// RSI Sell Statement
DataArray RSI = RelativeStrengthIndex(Close, 20) ;
sell(RSI<35);
Do some experiments and who knows, you might be ended up with the killer script
This is how DFN works.
1.Open System Tester from DFN Charting window
2.Strategy Evaluator will be open. Initially there will be Bollinger Bands, MACD & Moving Average only.
If you are going to write a new script, click on New System & give it a name and description in general tab.
3.Click on Buy Order tab and enter your code. This is a sample code for RSI.
You seems to be using RSI to evaluate overbought/sold conditions. That is a one approach.
But from my experience, it is better to monitor RSI crossing 50 level for some counters.
Here I'm using that crossover as a buy/sell signal.
After you done, click on Test Grammar to compile & click save.
4.Then click on Simulations and New Simulation to create your own simulation.
Add the required scripts from Systems tab
5.Click on Securities tab and add the counters you want to check
6.Finally, go to settings tab and give the simulation a name, add funds and click save.
There are some settings here to explore. I usually set as follows. (cash on hand @ 5%)
7.
Before you hit start! This is a very memory & processor consuming process.
Don't add too many scripts or counters. Simulation is running on 10 years of past data.
From the programming point of view, DFN is highly inefficient.
When you do some serious coding, you will understand that you have to duplicate may things due to system limitations.
I'm running this on 8GB system, still it is too much for my computer.