Codes

PZ Pivot Points for MetaTrader 4

Yet another pivot points indicator, light and customisable

PZ Parabolic SAR EA for MetaTrader 4

This Expert Advisor trades Parabolic Sar (PSAR) trend changes and applies a fast exit strategy. The parabolic SAR is a technical indicator developed by J. Wells Wilder. Basically, if the stock is trading below the parabolic SAR you should sell. If the sto

Stretch Breakout Channel for MetaTrader 4

The Stretch is a Toby Crabel price pattern which represents the minimum average price movement/deviation from the open price during a period of time, and is used to calculate two breakout levels for every single trading day

PZ Reversal Trend Following EA for MetaTrader 4

You can either be long or short at any given time. You buy and close a short position if the market makes a new 100-day high, and sell and close a long position if the market makes a new 100-day low

PZ Progressive Trading Scripts for MetaTrader 4

This set of scripts has been designed to scale-in your trades as price action runs in your favor. This will maximize profits due to proper pyramiding, decrease the impact of unprofitable trading decisions and in general, make your life easier

MACD + Flat Market Detector for MetaTrader 4

This is the standard MACD indicator drawing two flat lines instead of a signal line. It allows you to detect and trade flat markets

The classic Turtle Trading Indicator for MetaTrader 4

This is classic implementation of the Turtle Trading system, with clear entry/exits signals within the same trend and enter/exit alerts. It should be used together with my other indicator, The Turtle Trading Channel to get further entry signals if you h

The Turtle Trading Channel for MetaTrader 4

A trend following indicator that implements Dennis Gartman and Bill Eckhart trading system. Commonly known as "The Turtle Trader"

Heiken Ashi Histogram for MetaTrader 4

Another suggested way to track Heiken Ashi candles and trading short-term price swings

Heiken Ashi Oscillator for MetaTrader 4

Choosing between Heiken Ashi bars and candlesticks is a problem and measuring when the short term trend is losing strengh is another one. This indicator solves both

Forum

Recursive Indicator as #resource fail to execute. (solved)

Dear everyone! I hope you are fine. I am writing an indicator that uses another one as resource, called "foobar.ex4". The calling indicator is named "FooBarScanner.ex4". #resource "\\Indicators\\FooBar.ex4" int OnCalculate ( const int rates_total, const int prev_calculated

OrderClose(), requotes and time between orders

Hello everyone, I hope you are fine. I am having problems processing requotes in my CloseOrder() function . My function tries to close trades in a loop. If the broker sends a requote, the Ea tries again and again until closed. In theory it should work, however sometimes the broker sends back an

[Commissions] How to read the commission per lot, without open trades yet?

Good afternoon, I am trying to read from the broker the commission per lot using MarketInfo(), but I simply don't find the way :-( Kindly note I don't want to read the commission for a trade, once taken, I want to know the commission per lot inside the Ea, before trading. Thanks in advance! - A

Communication between different MT4 platforms

Dear friends, I have built an arbitrage EA that is ran on different Mt4 platforms. These EAs save timestamps and prices into the hard disk, which the other platform reads. Is there a more efficient way to communicate these two platforms that doesn't involve writing files to the hard drive every

Difference between MODE_MARGININIT and MODE_MARGINREQUIRED?

Good afternoon, I hope you are fine. I was wandering of someone could please explain the difference between these two values... MODE_MARGININIT => Initial margin requirements for 1 lot MODE_MARGINREQUIRED => Free margin required to open 1 lot for buying I can see their values are different. If

Zig Zag from past to present without repainting

Good night everyone, I am trying something interesting with Zig Zag indicator but I have a little doubt. We all know ZigZag repaints to adapt to new price values and cannot be used for signaling, right? I am trying to build an indicator that can show me all those points signaled by Zig Zag in the

FIFO compliance closing trades

Good afternoon, I hope you are fine. I would like to ask wether closing all trades with the following function is FIFO compliant, just to check. Is it enough to iterate trades backwards? For some reason it does not close all trades at the same time. for ( int i = 0 ; i <= OrdersTotal (); i++) Thanks

[Scalper EA] What should I consider to bring this EA Live?

Hello, I have made a tick scalper which seems to be very good in backtest. However, modeling quality is only 25%. Where can I download the tick data to make 99% modeling quality? This EA only trades when price accelerates to a certain point, and I have never traded a scalper in a live account. My EA

Calculation of real leverage? (solved)

Good morning, I hope you are fine. I have been having quite a problem calculating the real leverage used by the trading account. We can define real leverage as: double real_leverage = {total value of the open trades}/ AccountEquity (); I am using the SymbolInfoDouble function to calculate the value

How to change magic number of open trades?

Good afternoon, I am trying to change the magicnumber or the comment for open trades, in order to apply a different management to them in the future. It seems it cannot be done, but I would like to confirm. Is there a way to do this? Thanks in advance. A