After testing the modified efs I found that it was alerting after the DMI passed through 0.5 and not when it actually was 0.5. So I tried to tweak the line by replacing line 121 with the following:
however this gave me a syntax error that I couldn't figure out. Instead of the =< I think I need a 'setcompute' commnad added somewhere. I wonder if you could help me when you get a chance.
I made the corrections as you suggested, however I'm still not be alerting unil after the bar has closed - however I no longer get the syntax errors. This leads me to think that either I should include the setcomputeon (open) somewhere in the efs or its because I'm using bar replay to test it and may be when I use the script when actually trading it will alert me exactly when 0.5 is penetrated.
Carlton
In my first reply in this thread I do mention that the efs was set to sound an alert only at the close (ie completion) of a bar.
Anyhow attached is a version that will work in real time and will sound one alert when 0.5 is crossed either way.
Alex
Alex is it possible to make a demand index like the one you have in the form of a histogram with the outline of the histogram outlined thickrer than the the bars of the histgram like woodies cci indicator where the outline is a thick blakc color and a drop dwn hst another colour
silverxx12
Yes it is possible. At the end of the script replace return DMI; with return new Array(DMI,DMI); then in preMain() add two setPlotType() statements to define one of the plots as a line and the other as a histogram. Also add a setDefaultBarThickness() with the desired value to plot a thicker line. For the correct syntax on setPlotType() see the EFS KnowledgeBase under EFS Function Reference->Colors, Constants and Flags
Alex
Alexis is it possible you could just post an attachment with that efs i havent a clue about this efs stuff may seem simple to you but would proably take me a day to do
i just read ur posting from 2004 there silverxxx
did u ever obtain the script u were looking for? i have modified the script from alex so that it displays as a histogram if u want it. it's attached.
Comment