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
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) Viewed 998 times
-
- DTI Screenprint.png (117.2 KiB) Viewed 1007 times
-
- DTI_Signal.xml
- (7.09 KiB) Downloaded 303 times
- TJ
- Posts: 7079
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 985 times
- Been thanked: 2022 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.
Can you switch the Buy with Sell, and vise versa?
The equity curve might look better.

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.
Can you switch the Buy with Sell, and vise versa?
The equity curve might look better.
Hi TJ,
I already found one strategy (enormously unprofitable) which traded opposite might provide substatial profits.

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.
Can you switch the Buy with Sell, and vise versa?
The equity curve might look better.
Well, what do you know... this is what happens when you flip the buys and sells.
- Attachments
-
- Equity curve flipped.png (116.42 KiB) Viewed 1016 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