Hallo Lima,
Yes, I have also been "struggling" here once. But then, reading through the documentation brought enlightenment. What you need is a Express code of type blocker. This is effectively a filter that allows everything to pass until your exit criteria comes up. Then you set the value to flat ...
Search found 3 matches
- 21 May 2014 18:47
- Forum: WHS NANOTRADER - EXPRESS PROGRAMMING
- Topic: Express Funktion für Positionschliessen
- Replies: 3
- Views: 5219
- 16 May 2014 20:13
- Forum: WHS NANOTRADER - EXPRESS PROGRAMMING
- Topic: Import of Directional Ind. PlusDI
- Replies: 1
- Views: 2882
Import of Directional Ind. PlusDI
If I use the NATIVE "Directional Ind.", how can I import the plusDI value? (For backtest performance, prefer the native indicator at the moment.)
Express TestCode
VARS
series MACD (MACD.Main); // works
series plusDI(DirectionalInd.plusDI); // fails
I assume that the problem is with the name ...
Express TestCode
VARS
series MACD (MACD.Main); // works
series plusDI(DirectionalInd.plusDI); // fails
I assume that the problem is with the name ...
- 27 Apr 2014 22:06
- Forum: WHS NANOTRADER - EXPRESS PROGRAMMING
- Topic: limit order in express code
- Replies: 4
- Views: 7173
Re: limit order in express code
I programmed something like with SetLongTrigger() in Express. On each bar set exactly for each next bar (only the NEXT bar) a long trigger (at your blue line). Just quickly read up in the Express documentation on this function.