Thanks guys.
Wow, I thought I was getting up to speed on the formula language; apparently, not so. I guess I'm used to working more with actual formulas and functions then I am with actually writing programming language. Everyone on this forum seems to be light years ahead of me (which perhaps is a good thing). Thank you both for your input and patience with the new guy. So as not to become a royal pain in the rear, could you guys point me in the right direction for actually learning the programming language myself rather than leaching off others knowledge? I've read the MetaStock primer, but obviously need more. Any aftermarket programming books available that cover whatever programming language is used (what language is used, by the way)? I'm up for the challenge!
Wabbit,
I had the Richard Dale plug-ins before coming online. As a function in a system test, they refer only to a formula; I found the formulas in the Indicator Builder. So far, so good. Here's where I'm lost: the formulas appear (to me) to require the input of KNOWN information (e.g. date I entered the trade, etc.). But, that's the point of the system test (amongst other things): to determine an entry date. It seems therefore, that the plug-in formulas can't be used in a system test as they require the input of otherwise unknown variables, thus leaving the formulas with no reference points with which to function (and I'm not sure how to modify them). Am I missing something here?
Jose,
I copied your example and pasted it into the Indicator builder so I could see how it presented itself, and try to work through the programming language. In you example you show:
{ ATR }
ATRstop:=ATR(10)*multi;
Then, later:
{ Reference ATR at system entry,
and apply to exit as a stoploss }
trade:=If(PREV=0,If(entry,C,0),
If(exit OR C<PREV-ATRstop,0,PREV));
If I'm understanding things properly, in the portion of the formula that reads:
If(exit OR C<PREV-ATRstop,0,PREV)); you have previously defined "ATRstop" as "ATR(10)*multi", and previously defined "multi" as "Input("ATR stop multiplier",0,10,2)" (the multipliers are 0,10,2).
Is this correct? Am I on the right track?
Thanks again, guys, for taking the time; I really appreciate it.
Cheers,
Thom