PDA

View Full Version : Storing Global Values


CanAm
4th August 2003, 02:26 AM
Hi David

In upcoming releases would it be possible to look at two abilities:

1) Storing a global value that is true at the time the entry trigger is met, ie; Entry price + whatever

2) A further enhancement would be to be able to report those figures into the trade database.

I know nothing about DLL's and how they work but my thought was if you could say something like:

Global1 := yadda yadda yadda;
Global2 := etc etc etc;

Then to be able to call on that value in your exit trigger would be handy.

At this stage there are two restrictions to this;
1) Lets say Global was equal to open + 1, then, each day as the trade progresses then a new open price is used.
2) Even when the ValueWhen function is used, if the entry trigger is met again during a trade then the value gets re-set for each time the entry trigger requalifies.

Another solution to this may be to have the facility to recall the LongEntryPrice to be able to use it in any ongoing calulations (at this time if you call on LongEntryPrice it just recalc for the condition on that day as above).

More stuff for your evergrowing wish list :)

Cheers
Seth