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

adding alert to oscillator


  • To: <omega-list@xxxxxxxxxx>
  • Subject: adding alert to oscillator
  • From: "Shrikant Agrawal" <vvsamiti@xxxxxxxx>
  • Date: Sat, 1 Jul 2000 20:37:44 -0700
  • In-reply-to: <200006302253.PAA22639@xxxxxxxxxxxxxx>

PureBytes Links

Trading Reference Links

I have been using the following with 2000i
It plots as a histrogram with red and green bars
I wish to generate a sell signal when it turns red from green and vice versa
I want to add double sell/buy signal if the oscillator crosses zero line
 sell when going down and buy when coming up.)
I tried many times but failed
can anyone help
thanks in advance
----------------------------------------------------------

VALUE1  = average((h+l)/2,34);
VALUE2  = average((h+l)/2,5);

VALUE3 = VALUE2 - VALUE1;

if VALUE3 > VALUE3[1] then begin
 plot1(VALUE3,"Green");
end;

if VALUE3 < VALUE3[1] then begin
 plot2(VALUE3,"Red");
end;
-----------------------------------------------------------------------