Forum

how can i program a pivot line to be checked in back test

hi all proffesional in this great forum i have a simple problem i programed a very simple indicator which get the pivot of the day as a practice programing task using the equation p = ( h+l+c+o)/4 where p = pivot h = high of previous day l = low of previous day 0 = open of the previous day c = close

a question about two internal loops

hi all ; how can i write the following idea :- 1 - i have 100 double variable with names x1 -x2 - x3 ........... x100 2 - i want to subtract x1 -x2 then x1 - x3 then x1 - x4 ........ till x1-x100 3- second loop x2-x3,x2-x4,x2-x5....... x2-x100 4- x3-x4,x3-x5,x3-x6............x3-x100 98 -

my moving support and resistance indicator

hi all iam a beginner in programing i designed my first indicator and it works pretty good but i missed some programing orders to be able to make a back test for the indicator the idea of the indicator simple is to draw horizontal yellow line as a moving support or resistsnce for the day but during

back test for indicators

hi all, i want to make a back test for the MACD such that i can see the crossing of the lines while they do it and dont have a final result chart i mean to watch every crossing for the indicator in a life back test for a certain intereval of time can anybody advise me thanks a lot

moving high and low

hi everybody : please i want a help in writing certain code i want to write a code that get me the highest price and the lowest price of a certain determined number of candles to complete my strategy note :iam on my very beginning steps in mql4 programing thanks a lot