This is probably a commonly asked question.....but I appreciate any help:
I wish to write an efs that issues a BUY/SELL trade for an instrument in a certain time interval, say a 10 minute bar chart. This signal will be dependent on a value set in another efs, itself based on a different time interval, say a 60 minute bar chart.
What must be the format of the Main clause in the called efs, and of its RETURN clause?
And which type of CALL is most appropriate, the "call( EFSName, args )", or "callFunction( EFSName, FunctionName, [Parameters...])"?
Details of the system are as follows:
The longer time interval chart will establish if there is an uptrend, downtrend or neither in place, and return a value accordingly.
The shorter term interval chart will take the passed value, and based on an oscillator, issue a BUY STOP after a pullback in an uptrend, or a SELL STOP after a run-up in a downtrend.
This is basically the Elder triple screen system. In English, BUY after a pullback within an uptrend, and vice-versa.
My understanding is that since I am operating in different timeframes, I need two (2) charts and so, two (2) efs. Hence the need for one to invoke the other.
Thanks
George
note: I am hoping that R7.4 will support these kind of trades with the Integrated Brokers (such as IB), trades over and above simple BUY/SELL.
I wish to write an efs that issues a BUY/SELL trade for an instrument in a certain time interval, say a 10 minute bar chart. This signal will be dependent on a value set in another efs, itself based on a different time interval, say a 60 minute bar chart.
What must be the format of the Main clause in the called efs, and of its RETURN clause?
And which type of CALL is most appropriate, the "call( EFSName, args )", or "callFunction( EFSName, FunctionName, [Parameters...])"?
Details of the system are as follows:
The longer time interval chart will establish if there is an uptrend, downtrend or neither in place, and return a value accordingly.
The shorter term interval chart will take the passed value, and based on an oscillator, issue a BUY STOP after a pullback in an uptrend, or a SELL STOP after a run-up in a downtrend.
This is basically the Elder triple screen system. In English, BUY after a pullback within an uptrend, and vice-versa.
My understanding is that since I am operating in different timeframes, I need two (2) charts and so, two (2) efs. Hence the need for one to invoke the other.
Thanks
George
note: I am hoping that R7.4 will support these kind of trades with the Integrated Brokers (such as IB), trades over and above simple BUY/SELL.
Comment