Recent content by ptcman

  1. P

    Problem reading intraday volume

    Hi. I resolved part of the problem but apparently, created another :( I wrote this study that plots the last session volume correctly: var: counter(0); if LastCalcDate > date then counter = cum(volume); plot1(cum(volume)-counter); Then decided to specify a time period and here is where...
  2. P

    Futures/Commodities EOD in Metstock format

    Hi. There's only one EOD data provider. Check PremiumData You won't find a service that beats this one. Try their free trial (full service) and see how good they are. Regards, ptcman
  3. P

    Help with time() and highest()

    Thank you StratOpt. Part of the problem has been solved. Regards, ptcman
  4. P

    Problem reading intraday volume

    Hi. I'm having problems reading intraday volume. First, I tried this formula: if time > 1430 and time < 2100 then plot1(cum(volume)); It cumulates the volume of each time period, but from the begining of the chart until today. The reading don't reset at the end of the time period. How to...
  5. P

    Call previous day

    Hi. Hope all had a great Christmas day. How can I call yesterday's Close, High or even the RSI on an intraday chart? regards, ptcman
  6. P

    Help with time() and highest()

    Hi. How can we especify a time range in EL using as the start point the previous day? Let me explain, ES starts trading at 4:30 pm ET until 4:15 ET the next day. How can I write this in EL? How can I "call" for a especific hour from yesterday until today's? For EL, the trading starts at...
  7. P

    Floating point error

    I want to thank you both for your pacience. I'm plotting each variable and see them in realtime so I can discover where is the error. Like BPV said, problems like these always have a good side, we learn to better understand how easy language works although the bad side is that it's to much...
  8. P

    Floating point error

    Hi. I appreciate all the help that you are giving me but I'm starting to go crazy here. I simply cannot open the study, plotted in the #11 post of this thread, on a intraday chart because I'm always receiving a floating point error. The only way for that error dissapear is to use BPV option...
  9. P

    Floating point error

    Hi Charlton. I've tested BarStatus() but I'm having difficulty in understanding the concept. plot1(barstatus); As far as I could see, when a new bar iniciates (open price) the barstatus() plots 2 and after that plots 1 until the end of the, in this case, 5 min bar althouht this is a bit...
  10. P

    Floating point error

    I tried to plot the study on a real time chart but I always received a floating point error, closing the window automaticaly. So I could only see it on daily charts. There is nothing better than to test an indicator on a real time chart to see what exactly is going on. The prints that you...
  11. P

    Floating point error

    First of all, let me thank you for your replys. They're great for brainstorming, especially for people like me, iniciating on EL. I made a little modification in the { *Daily Range* } and in the { *Variable declaration* } section. { *Variables*} vars : cls(0), dRng(0); vars : inRng(true)...
  12. P

    Floating point error

    OK. Here is a similar formula that produces the same error. I've made two versions of the "bulRng" variable to see if there was a problem with the first one but the result is the same. Notice how there are a couple of bars where the result is negative. { *Variables*} vars : cls(0), dRng(0)...
  13. P

    Floating point error

    Imagine this: (1-value1=30/value2=62)*100 Let me add that, value2 is always higher than value1 This formula will produce in some bars, negative results. How is that possible? I assume that it is because of that division by zero error.
  14. P

    Floating point error

    Hi. Charlton, I didn't understand you formula. Value1 and value2, by themselves, never plot zero as a result. The above formula, some how, produce negative results in some bars presumably because of that division by zero error. I don't know if any of you is familiarized with Metastock...
  15. P

    Floating point error

    Hi. I'm receiving a floating point (division by zero error) in the following formula: (1-value1/value2)*100 How can I remove the error? Is there another way to write the above formula? regards ptcman
Top