Basic questions here... I'm using eSignal 7.4's supplied Simple MA sample efs script.
1) It seems that the script produces trade signals based on a bar's closing price, but picks that same bar's entry price as the trade price. What am I missing?
I have set up a time template for 2 days back, market hours. I chose a 5 minute interval for the chart. The equity is INTC. The date is 7/24/2003.
The trade report shows a buy at 11:10 @ 24.78. The 11:10 bar does indeed close above the 10 period simple MA. No problem.
The next few bars are all completely above the 10 period MA.
The 11:30 bar opens at 24.85, has a high of 24.86, got as low as 24.73, and closes at 24.80 -- just below the 10 period simple MA. That should trigger the close.
And indeed, the exit from that trade is listed at 11:30. But at 24.85. The 11:35 bar never gets close to 24.85...
What gives?
2) Assuming that problem is "fixed", how can one get real-time signals out of the same .efs? Ideally, popping up a trade window. Using the eSignal Paper Trade integrated broker for starters.
3) Is there any way to get the OHLCV data for a bar in text form on a chart by clicking on it? (CyberTrader has this feature).
4) How can I add code to that .efs to close out any open position at the end of the trading day? I'd expect the study object or the getValue method to have a time property, but it doesn't.
Thanks in advance,
Richard (obvious new user ;-)
1) It seems that the script produces trade signals based on a bar's closing price, but picks that same bar's entry price as the trade price. What am I missing?
I have set up a time template for 2 days back, market hours. I chose a 5 minute interval for the chart. The equity is INTC. The date is 7/24/2003.
The trade report shows a buy at 11:10 @ 24.78. The 11:10 bar does indeed close above the 10 period simple MA. No problem.
The next few bars are all completely above the 10 period MA.
The 11:30 bar opens at 24.85, has a high of 24.86, got as low as 24.73, and closes at 24.80 -- just below the 10 period simple MA. That should trigger the close.
And indeed, the exit from that trade is listed at 11:30. But at 24.85. The 11:35 bar never gets close to 24.85...
What gives?
2) Assuming that problem is "fixed", how can one get real-time signals out of the same .efs? Ideally, popping up a trade window. Using the eSignal Paper Trade integrated broker for starters.
3) Is there any way to get the OHLCV data for a bar in text form on a chart by clicking on it? (CyberTrader has this feature).
4) How can I add code to that .efs to close out any open position at the end of the trading day? I'd expect the study object or the getValue method to have a time property, but it doesn't.
Thanks in advance,
Richard (obvious new user ;-)
Comment