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.

LukeGeniol

Members
  • Content Count

    1
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    Italy
  • Country
    Italy
  • Gender
    Male
  • Occupation
    Trader

Trading Information

  • Vendor
    No
  • Favorite Markets
    Forex, Futures
  • Trading Years
    2
  1. Hi Mario, Your indi is simple great!! I would ask you if it's possible make an indi like this that plots a Volume histogram instead of MP histogram, with this formula: VWTPO - This method distribues the volume of a bar over the price range of the bar. e.g. A 5-minute bar has a volume of 280 and a range of 1.5 points with a High at 1534 and a Low at 1532.5, then 40 contracts (=280/7) are loaded to each of the seven prices in that range: 1532.50, 1532.75, 1533.0, 1533.25, 1533.50, 1533.75, and 1534. //Volume Weighted Time Price Opportunity - //Disperses the Volume of the bar over the range of the bar so //each price touched is weighted with volume BarH=High[i]; BarL=Low[i]; int TicksInBar = (int) Math.Round((BarH-Low[i])/TickSize+1,0); while(BarL<= BarH) { index = (int) Math.Round((BarL-TheSessionLow)/TickSize,0); index /= TicksPerSlot; //drop fract part. PriceHitsArray[1,index] += Volume[i]/TicksInBar; BarL = BarL + TickSize; May given the choise of select TF for the calculation, the best i think is calculate it from 1M, but may it take too high pc resources. Thanks. Lubo. P.s I like more Volume Profile (or called Volume at price, or by price). I took this part of code from a Ninjatrader indi.
×
×
  • Create New...

Important Information

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