Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

arnie_pt

Members
  • Content Count

    10
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    Barreiro
  • Country
    Portugal
  • Gender
    Male

Trading Information

  • Vendor
    No
  1. Unbelievable. I stared for hours looking where could be the problem and never noticed the "time_s" :doh: :crap: Thanks
  2. Hi Tams. Need your wisdom again. I'm trying to "plot" text on the chart, but something is wrong with it. Please see formula: Inputs: startTime (830), endTime (1515); variables: stTime (false), resetVol (false), sessVol (0), myVolume (0), prevVolume (0), todayVolume (0), txt (0); if currentbar = 1 then txt = text_new_s(date,time_s, 0, " "); Text_SetStyle(txt, 0, 2); if BarType >= 2 then MyVolume = Volume else MyVolume = Ticks; if date <> date[1] then begin prevVolume = todayVolume; todayVolume = 0; Text_setstring(txt, "Regular Session"); end else begin if time > startTime and time < endTime then begin todayVolume = todayVolume + myVolume; end; end; Text_setlocation_S(txt, date, Time, todayVolume); plot1(todayVolume); plot2(prevVolume); I created a new text at the first bar and then when the condition became true I set the string for that text, and at the end set the location. The location is to be in front of the todayVolume variable, and since the text isn't being "plotted" I assume that it as something to do with the location (?).
  3. Thanks Tams for the links. Very interesting stuff indeed. Did you made any type historical test that resulted in those 68.268%? Again, thank you for your patience.
  4. Seeing it now, it's amazing how simple it is :embarassed: The strange part is that in theory, we should see negative percentages and that never happens This cannot be possible. It would be the same to say that every single day, more volume is traded relatively to the previous day, and that, we know that it's not true. I'm sure I'm missing something, but I couldn't figure it out yet. Another thing that I'm missing is the threshold input It seems that you consider a volume below threshold to be negative, since you set the plot color to be "down", but from where did you collect that value? I'm definitely missing something :embarassed:
  5. Thanks Tams. It was a small surgery. Nothing to worry about, though for a short period of time, I'm limited in terms of walking. Hey, look at the bright side, I have more time to study EL It looks like you use the previous day counter to know how many bars exist in that day, and then for today calculations you use downto loop (?) to count backwards? Something like: for currentbar(count) downto previousbar(count)
  6. Hi Tams. Sorry for this late reply. I've just came out of the hospital yesterday So, first I want to confirm that we have a new trading day and if confirmed, I will then start a new bar count. Then, when the counter starts I will need to go to the previous day counter to reference today's first bar with yesterday's first bar. To calculate the volume percentage: ((current volume bar number / yesterday's same volume bar number) - 1 ) * 100
  7. OK, let's see if I'm able to cover all requests. Also, let's assume that all will be apllied to 1 minute charts, thought it should also be able to be applied to higher resolutions. a - I want to compare today's volume with yesterday's volume. b - I want to compare the volume of a specific time/bar with yesterday's same specific time/bar. c - This volume comparison must be made not over the volume traded in each bar, but over the cumulative volume traded, since the time specified in the Input area. d - This reading shoud be made inside the selected time range in the Input area. e - To facilitate the comparison, we should use a counter, counting the bars between the selected time range. f - using a counter you can reference the cumulative volume of each bar to the same bar (bar number) of the previous day. So the computer already have the cumulative volume of the specified time range and now it needs a counter for referencing. The counter is also there, so now it needs a way to connect the volume of each counted bar to the same previous day counted bar. Right?
  8. Hi. It seems that I need to use for loop (?) (based on your image), but unfortunately my EL knowledge is still very limited and I haven't yet understood how that works I've tried something like, for counter = 1 to current bar begin, but naturally I've got no where I created the counter and changed slightly the formula since the previous version had a problem. I've also created the volPCT variable to calculate the % from yesterday, just to see the result of it, and at first I received an zero division error. I added the maxlist function which resolved the problem, but I don't know if this is the best option. Inputs: startTime (1200), endTime (1400); variables: stTime (false), resetVol (false), sessVol (0), myVolume (0), prevVolume (0), todayVolume (0), counter (0), volPct (0); if BarType >= 2 then MyVolume = Volume else MyVolume = Ticks; if date <> date[1] then begin counter = 0; prevVolume = todayVolume; todayVolume = 0; end else begin if time > startTime and time < endTime then begin todayVolume = todayVolume + myVolume; counter = counter + 1; end; end; //volPct = ((todayVolume/maxlist(prevVolume,0.01)) - 1) * 100; plot1(todayVolume); plot2(prevVolume); //plot3(counter); //plot4(volPct);
  9. Hi. I'm looking at volume since the opening, in this case, since startTime input. Plotting todayVolume variable we'll have the volume reading/accumulation since the startTime input until the endTime input. The formula should be able to read resolutions above 1 minute. The attached chart shows the indicator plotted in an ES 1 minute chart. We already have access to the previous day's volume with the prevVolume variable. The thing is how to have access to the volume reading/accumulation time of yesterday so we can compare it with the same time in today's volume reading/accumulation? Basically, what I want, based on the time range sellected in the inputs, is to be able to see in realtime, 1 minute, 5 minutes or 30 minutes charts, the volume difference at that precise time when comparing it with yesterday's same time. Thank you.
  10. Hello. I'm having trouble with a study, and I would like some help with it. The premise is simple. Recording today's total volume traded between a specified time range and comparing it with the same previous day traded volume during the same specified time range. So far so good. The formula below does just that. The thing is, I want today's reading to indicate the difference of traded volume when compared to yesterday's traded volume at that same time. So, if today, at 10:05 AM, the ES has already traded 115.882 futures, what is the difference in %, when compared to yesterday's same time? I can say that this Friday, at 10:05 AM we had traded 129% more volume than the previous day at that same time. Simply said, I want to know in realtime the trade volume difference when compared to yesterday's traded volume? How can I program and insert that in the formula below? Thank you. Regards, Fernando PS: I use Multicharts. Inputs: startTime (930), endTime (1200); variables: stTime (false), resetVol (false), sessVol (0), myVolume (0), prevVolume (0), todayVolume (0); if BarType >= 2 then MyVolume = Volume else MyVolume = Ticks; if date <> date[1] then begin resetVol = false; if time > startTime and resetVol = false then begin resetVol = true; prevVolume = todayVolume; todayVolume = 0; end; end; if time > startTime and time < endTime then begin todayVolume = todayVolume + myVolume; end; plot1(todayVolume); plot2(prevVolume);
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.