Mohit Marwaha / Publications
Codes
ATR Values for MetaTrader 4
This indicator plots the values of the user specified ATR period for all timeframes as a text block. The text block corner can be changed by the user
Change Timeframes with Hotkeys for MetaTrader 4
This simple indicator will change the timeframes of the current chart with keypress
Forum
How to find the Bar Shift Of a Historical Bar
Hi, I know this question must be already asked earlier but i am not really able to find the proper code for the same. I need the close price for a specific time in history. I do understand that i can get it via iClose[] function. All i need is the working code for getting bars since that time in
how do i declare variables and then use them inside a function
hi guys, i am developing an ea that requires me to compare the high of previous 2 bars and whichever one is higher, use that as a stop loss value . same for opposite side trades, i need to compare previous 2 lows and use the lower one as stop loss value. what i am doing is this:- if(Low[1]<Low[2])
How do i store the value of the last up and down fractals
Hi everyone, I am relatively new to ea programming. I am trying to store the values of the latest up fractal and down fractals and then use them while modifying my stop losses . any help would be greatly appreciated thanks
mt4 ea code for checking the last few MACD histogram bars
Hi, I am looking for help on the following:- I want to check the previous values of MACD Histogram Values and if the slope is pointing up, i want to buy and if pointing down i want to sell. any help would be appreciated