Matthew Allbee / Publications
Forum
Writing an SMA indicator from scratch
/* SELF-CODED 5-DAY SMA Set up buffer with style, indexbegin, and color for each bar: calculate closing price of last 4 bars and current price use to find SMA value at that bar update last value after every tick lock each bar's SMA value once the bar has close */ #property
Plotting SMA indicator on chart
For my first indicator, I'm simply trying to plot the SMA indicator on a chart. I can get the code to compile and it loads when I click "Start on Real Data," but nothing actually shows on the chart. What is going wrong here? #property copyright "Copyright 2016, MetaQuotes Software Corp." #property
Implementing a simple RSI strategy test - first program
I am attempting to creating a simple EA in MQL4 that sells a pair when the RSI rises above 75 and sells when it falls below 60, while only being in one trade at a time. For some reason, it will only continuously selling without ever closing a position on the strategy tester. Any ideas? Here is the