Forum

Indicator for storing price of seconds ago in array. Array doesn't work.

Good afternoon! I'm trying to build an indicator that stores the price of each second ago in an array. Then, I intend to get the price of, for example, 5 seconds ago, accessing the array L[5].... I made this code below, but I can't access the array. If it's L[0], then it works.... Where am I going

Price indicator from X seconds ago.

Good evening! I need an indicator with a single buffer indicating the price x (input) seconds ago... Can someone help me?? I really appreciate everyone's attention

How to get the price from 5 seconds ago?

I'm working on a scalper robot and I would be very grateful if someone could give me a tip on how to get the price from 5 seconds ago, regardless of the candle and preferably without using an array (if that's possible)! Thanks in advance for everyone's help! Hugs

How to get the price on the second X of the 1M candle?

I'm new to EA programming and I'm working on a project that analyzes the price difference between two points in time, in seconds. My goal is to identify stretched prices over short periods of time. I already have a robot that analyzes this "stretch" in seconds, using this: TimeCurrent() <=