[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Need Help on If Function....



PureBytes Links

Trading Reference Links

This is from MetaStock support:


Your email was responded to by:
William
Equis Customer Support
http://www.equis.com


William's response is below the following line.
-----------------------------------------------------------------------


I can relay your suggestion, but till it is implemented your best option
is using the MetaStock Developer's Tool kit and writing a custom DLL.

The MetaStock Formula language is a mathematical expression to be
calculated and plotted for each bar of data loaded.  The calculation of
gravity does not have an condition under which it does not exist.  It
may be very small, but it does exist.  By the same token, if you were
given a formula and some data and instructed to calculate the formula
for every data point, you might be distressed to find the formula
incomplete.  That is the effect of an If-Then without the else.

Call it a failing if you wish, but our formula language is not designed
to have a plot start and stop.  It must have a continuous string of
values which it plots in an unbroken line.  That is why the If-Then
capability is not currently implemented.  Perhaps a future version of
the program will allow this flexibility.  Until then, a custom DLL may
be closest to the result you are seeking.

This is from MetaStock support:

-----Original Message-----

There seems to be a simple formula missing.  MetaStock has an If
function that is really an If Then Else function. The problem is that there
is no
If Then function. The problem arises if one does not wish anything to be
plotted under the else condition. If one places a 0 for the third
parameter then a point is plotted at 0.

Is there a null parameter that can be used as the 3rd parameter? Would
you suggest to the programmers that a plain If Then function be added?

Thank you