Codes

ProfitLine for MetaTrader 4

Graphical calculation of profit/loss from lot, or vice versa

ProfitInfo for MetaTrader 4

ProfitInfo is an indicator to show in one window opened buy and sell trades of defined symbols and systems

Timer for MetaTrader 4

Timer is a break trough system

BreakThrough for MetaTrader 4

System open positions after crossing hand drawn trendlines on chart

Collector_v.1.0 for MetaTrader 4

It trades huge amount of trades with small lot sizes. Does not use indicators or price formations, buys/sells in growth/fall of price

Modify stop loss or take profit for MetaTrader 4

Scripts to modify stop loss in buy or sell opened orders on current chart

ProfitOnDrop for MetaTrader 4

Calculates the profit from oppened trades if the Price reaches the dropped Price

Pure_Martingale for MetaTrader 4

Martingale syste, trades are random

Close at Profit for MetaTrader 4

Close all trades after reaching defined profit or loss

UpDownBars for MetaTrader 4

Oscillatior indicator that counts Up bars (Close-Open) and Down bars (Open-Close)

Forum

CButton with text in 2 lines

I want to create a button from button.mqh with text in 2 lines but the \n is ignored in myButton.Text("Line \nNew Line");

trading shortcuts

Is it possible to add in EA keyboard shortcuts, example when I hit keyboard "b" it will execute OrderSend function ? Thank you

pending orders horizontal line color

can by modified the horizontal line of pending orders? there is only the arrow color that could by changed in OrderSend, OrderModify functions, I want the buy orders to be green and sell orders red

script read and change extern variable of EA

Is there a way to read extern variable from running expert? and change them

CTrailingMA

I try to use trailing stop but get error 'CheckTrailingStopLong' - no one of the overloads can be applied to the function call 'CheckTrailingStopShort' - no one of the overloads can be applied to the function call #include <Trade\PositionInfo.mqh> #include <Expert\Trailing\TrailingMA.mqh>

calculate profit of last closed position

I want to calculate the profit of last closed position as it would by traded with 0.1 LOT, but have a problem with understanding the MQL5 concept. I try this code but it doesn't work, could somebody help, or refer to some code where is discused similar problem bool CalculateOneLotProfit() {