- ago
Where would I get to view all the NFS transactions, and how would I download them?
0
587
Solved
9 Replies

Reply

Bookmark

Sort
- ago
#1
Why would you want to download NSF positions?
0
Glitch8
 ( 8.38% )
- ago
#2
Add this method override:

CODE:
      public override void BacktestComplete()       {          List<Position> positions = GetPositionsAllSymbols(true);          foreach(Position pos in positions)             if (pos.NSF)                WriteToDebugLog(pos.ToString());       }
0
- ago
#3
I use at least two layers of backtesting.

I research parameters and their correlation with backtesting results on the first layer – I need no NSF – so I simply set a huge amount of starting money and a small position size. You get no NSF.

I do more realistic backtesting on the second layer, where NSF – is the part of the emulation. On this layer I don’t care what these NSF are.

Just my thoughts about NSF).
0
- ago
#4
A list of NSF positions would be helpful since there may be a common characteristic that could be filtered out if it does not have a positive impact on the results. Then these unnecessary alerts would not interfere with "valid" alerts.

Also, thanks to Glitch for the suggestion but how would this be achieved if the strategy was build using prebuilt rules?
0
- ago
#5
Using the prebuilt Blocks, you can click "Open as C# Coded Strategy" and insert the code there.
0
- ago
#6
Thanks to Glitch and Eugene I now get a list of NSF positions. Please would you help me add the date to the NSF position.
0
Glitch8
 ( 8.38% )
- ago
#7
Look at the QuickRef help for the Position class. It documents all of the properties. You would compose your own string instead of using the ToString like I did in the example.
0
Cone8
 ( 25.05% )
- ago
#8
CODE:
WriteToDebugLog(pos.ToString() + "\t" + pos.EntryDate.ToShortDateString());


For a list of all the Position properties, see Class Position in the QuickRef.
0
Best Answer
- ago
#9
Thanks for the answer it was most helpful.
0

Reply

Bookmark

Sort