Trying to add file append to a working strategy but I can't get it to work. I want to see the strategy AND append the buy/sell to text file (whiach also works but not WITH the buy/sell code.
This is what I am trying to get working:
...... then
FileAppend("c:\trade.txt", "cxlplace,BUY,60000,MKT,,0" + NumToStr(Date, 0) + NewLine) and Buy ( "gw1" ) next bar at market ;
Help with a little code please
- Alex Kramer
- Posts: 834
- Joined: 23 Feb 2006
that compiled but stategy didn't show up on chart, I found work around, I can enter buy sell signals and also load the text append orders ...
BUT my format isn't quite right
the format I am trying to generate at end is:
"cxlplace,BUY,1,MKT,,0 ,2006082312300"
I need help with last part the date/time stamp
format is:
2006 - year (YYYY)
08 - month (MM)
23 - date (DD)
1230 (time)
plus extra 0 at end
I played around with CurrentDate AND CurrentTime but couldn't get it to work. Any ideas with this one?
BUT my format isn't quite right
the format I am trying to generate at end is:
"cxlplace,BUY,1,MKT,,0 ,2006082312300"
I need help with last part the date/time stamp
format is:
2006 - year (YYYY)
08 - month (MM)
23 - date (DD)
1230 (time)
plus extra 0 at end
I played around with CurrentDate AND CurrentTime but couldn't get it to work. Any ideas with this one?
- Stanley Miller
- Posts: 556
- Joined: 26 Jul 2005
- Has thanked: 3 times