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.

Liliput

Members
  • Content Count

    2
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • Country
    Bulgaria

Trading Information

  • Vendor
    No
  1. Thsnkx thrunner! But i'm still on the search...
  2. Hi, this is my first post here. So hello to everyone! Great forum! I'm trying to convert the ValueCharts into MetaTrader 4 and need please some help. I have managed to create the charts but sometimes i get strange results and i know i miss very small piece. Can someone give some light what value exactly will return the VChart function if LRange is = 0. I know it will skip those lines form the code because of the if statement: If LRange > 0 then begin If Price = Open then VChart=((Open-Average((H+L)/2,VarNumBars)))/(LRange); If Price = High then VChart=((High-Average((H+L)/2,VarNumBars)))/(LRange); If Price = Low then VChart=((Low-Average((H+L)/2,VarNumBars)))/(LRange); If Price = Close then VChart=((Close-Average((H+L)/2,VarNumBars)))/(LRange); End; BUT what will be the input then for the Plot function in this case for the close price and same for H,L,O?? Do we exit with 0?If Plot sees 0 what it does then? Plot1( VClose, "VClose", Red) ; Sorry to asking but i do not know EL and use my C++ and MQL skills to convert the code:crap: So in C++ one have to define what value a function will return. Here because of the IF in the VChart function the case when LRange=0 is undefined. My second qustion is: What may be the reason that i'm getting values for VChart greater then 15??Some bars (see screenshot) are 100 or more of value. Why can this occur? Thanks in advice!
×
×
  • Create New...

Important Information

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