Forum

ObjectGet Question

Trying to grasp the use of ObjectGet. Trying to get values of fib levels. Not sure I'm using it right. Just getting zero for returned value. Any help would be greatly appreciated. Thanks! ObjectCreate (objname, OBJ_FIBO , 0 ,dt2- 2200 ,vHigh,dt2,vLow); ObjectSet(objname, OBJPROP_RAY

Counting Question

Trying to count the number of times that the Ask price goes above the High of the day. Only seem to get zero, with the following code. Can someone tell me what I'm doing wrong or missing? Seems like this should be pretty simple. Perhaps code is only being seen as a true or false condition. Thanks

Compiling Question

I have several indicators, that I have to keep compiling, to keep the items displayed on the chart current. Below is some code to show what I mean. When the platform is launched or when the indicator is added to the chart, there is no problems. When period "0" becomes period "1", the lines stop

Trying to find last two digits of a number

I'm trying to find the last two digits of a number. In this case 1.11858. I find I first have to multiply the number by 100000 to convert the number to a whole number. Next I'm trying to find the last two digits by creating a loop, in which the whole number is subtracted by 100 until all that's left

Finding High or Low between two points in time

Trying to figure out how to find the high between two points in time. From January 1st to March 1st. Going in circles. Perhaps someone could look at the following code and tell me if I'm headed in the right direction. Thanks! //+------------------------------------------------------------------+ //|