Author Topic: How to store value in a variable  (Read 4870 times)

akshah

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to store value in a variable
« on: January 25, 2011, 04:40:51 am »
Hi Guys,

I am new to Amibroker AFL so excuse me if I am asking something stupid.

What I want to do is lets say we have a simple MA crossover system. When the averages cross in the negative a short signal is triggered. I want to store the low value of this trigger bar and then check thereafter whenever prices goes below this low to enter a short position (provided the averages are still in the negative). Opposite is the condition for longs.

How do I store this trigger rate and compare the bars thereafter with this trigger rate to see if short is triggered?