Is that very simple? But can't do that. Please help me. Many thanks.
I have try with this:
Alert("OpenD1: ", Open[0]," HighD1: ", High[0]," LowD1: ", Low[0], " CloseD1: ", Close[0]);
And back test it with: (From 2009.01.01 to 2009.12.20)
- Period: Daily
- Model:
+ Every tick
+ Control Points
+ Open Prices Only
But results not good. How to solve it?
Alert don't print anything ! and don't do anything in backtesting
Try Print("OpenD1: ", Open[0]," HighD1: ", High[0]," LowD1: ", Low[0], " CloseD1: ", Close[0]);
or a subroutine with FileOpen, FileWrite and Fileclose
Alert don't print anything ! and don't do anything in backtesting
Try Print("OpenD1: ", Open[0]," HighD1: ", High[0]," LowD1: ", Low[0], " CloseD1: ", Close[0]);
or a subroutine with FileOpen, FileWrite and Fileclose
Thanks Matutin.
But results same. It's show results in the Journal.
2009.12.31 20:33:57 2009.12.23 23:59 Tung2 GOLD,Daily: OpenD1: 1083.43 HighD1: 1095.5 LowD1: 1079.43 CloseD1: 1087.3
2009.12.31 20:33:57 2009.12.23 00:00 Tung2 GOLD,Daily: OpenD1: 1083.43 HighD1: 1083.43 LowD1: 1083.43 CloseD1: 1083.43
2009.12.31 20:33:57 2009.12.22 00:00 Tung2 GOLD,Daily: OpenD1: 1093.18 HighD1: 1093.18 LowD1: 1093.18 CloseD1: 1093.18
2009.12.31 20:33:57 2009.12.21 00:00 Tung2 GOLD,Daily: OpenD1: 1110.75 HighD1: 1110.75 LowD1: 1110.75 CloseD1: 1110.75
That's not good. How to solve it?
Thanks Matutin.
But results same. It's show results in the Journal.
2009.12.31 20:33:57 2009.12.23 23:59 Tung2 GOLD,Daily: OpenD1: 1083.43 HighD1: 1095.5 LowD1: 1079.43 CloseD1: 1087.3
2009.12.31 20:33:57 2009.12.23 00:00 Tung2 GOLD,Daily: OpenD1: 1083.43 HighD1: 1083.43 LowD1: 1083.43 CloseD1: 1083.43
2009.12.31 20:33:57 2009.12.22 00:00 Tung2 GOLD,Daily: OpenD1: 1093.18 HighD1: 1093.18 LowD1: 1093.18 CloseD1: 1093.18
2009.12.31 20:33:57 2009.12.21 00:00 Tung2 GOLD,Daily: OpenD1: 1110.75 HighD1: 1110.75 LowD1: 1110.75 CloseD1: 1110.75
That's not good. How to solve it?
Write a subroutine with FileOpen, FileWrite and Fileclose to create a file with your results
phil
Thanks Matutin again.
I'll try to do that.
But now, I find out thay way very simple to get results:
Open a daily chart
Menu -- File -- "Save As..." will make a csv for you
Happy new year!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is that very simple? But can't do that. Please help me. Many thanks.
I have try with this:
Alert("OpenD1: ", Open[0]," HighD1: ", High[0]," LowD1: ", Low[0], " CloseD1: ", Close[0]);
And back test it with: (From 2009.01.01 to 2009.12.20)
- Period: Daily
- Model:
+ Every tick
+ Control Points
+ Open Prices Only
But results not good. How to solve it?