Hello Guys,
Could someone please have a look at the below and possibly try to code the simple buy and sell signals in line with the screenshot.
I attach:
(i) DTI indicator (xml)
(ii) DTI signal (jpg) a screenshot with buy and sell signals
Thanks
DTI strategy help needed
DTI strategy help needed
- Attachments
-
- DTI.xml
- (7.25 KiB) Downloaded 627 times
-
- DTI signal.jpg
- (168.07 KiB) Downloaded 1416 times
Ok, assuming you want to go short with every cross of any line from above and you want to go long with every cross of every line from below, the code is below. You should have no problem changing it for your requirements.
- Attachments
-
- Equity curve.png
- (107.89 KiB) Downloaded 1360 times
-
- DTI Screenprint.png
- (117.2 KiB) Downloaded 1369 times
-
- DTI_Signal.xml
- (7.09 KiB) Downloaded 583 times
- TJ
- Posts: 7753
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1034 times
- Been thanked: 2228 times
Can you switch the Buy with Sell, and vise versa?Ok, assuming you want to go short with every cross of any line from above and you want to go long with every cross of every line from below, the code is below. You should have no problem changing it for your requirements.
The equity curve might look better.
Hi TJ,Can you switch the Buy with Sell, and vise versa?Ok, assuming you want to go short with every cross of any line from above and you want to go long with every cross of every line from below, the code is below. You should have no problem changing it for your requirements.
The equity curve might look better.
I already found one strategy (enormously unprofitable) which traded opposite might provide substatial profits.
Well, what do you know... this is what happens when you flip the buys and sells.Can you switch the Buy with Sell, and vise versa?Ok, assuming you want to go short with every cross of any line from above and you want to go long with every cross of every line from below, the code is below. You should have no problem changing it for your requirements.
The equity curve might look better.
- Attachments
-
- Equity curve flipped.png
- (116.42 KiB) Downloaded 1378 times
-
- Posts: 43
- Joined: 01 Dec 2008
- Has thanked: 2 times
- Been thanked: 2 times
-
- Posts: 43
- Joined: 01 Dec 2008
- Has thanked: 2 times
- Been thanked: 2 times