Check Last Closed Trade (Profit / Type / Symbol etc.) – expert advisor for MetaTrader 5

Check Last Closed Trade (Profit / Type / Symbol etc.) - expert for MetaTrader 5
With this code block, you can get the last closed trade data without using loops.  Create a variable to set the current day start time. (This is not necessary to do.) Create some other variables to print a chart output and use if in other code blocks as well. (This is not necessary to do.) Using

QuickTradeKeys123 – expert advisor for MetaTrader 5

QuickTradeKeys123 - expert for MetaTrader 5
Details: The QuickTradeKeys 123 EA is designed to facilitate efficient and rapid market responses. With just one keystroke, users can trade directly from the chart view. Here’s a brief summary of its functionality: Key ‘1’: Opens a buy position with a predefined lot size. Key ‘2’: Opens a sell position with a predefined lot size.

Simple Yet Effective Breakout Strategy – expert advisor for MetaTrader 5

Simple Yet Effective Breakout Strategy - expert for MetaTrader 5
This breakout strategy is the base for our QAlpha StockTrend product:  You can freely modify/add your own filters to create your own unique version of this strategy. The basic premise of the strategy: Buy/Cover as soon as the price breaks above n bars high Short/sell as soon as the price breaks below n bars low Backtested on

Code blocks for “Counters” like Count “X” time and pass – expert advisor for MetaTrader 5

Code blocks for "Counters" like Count "X" time and pass - expert for MetaTrader 5
01. Count “X” Times and then pass. Step 01 – Created a variable for set the count limit. you can use it as an input parameter as well of optimization in your code.  Step 02 – Create another variable to store the counted limit (How many times it has been counted). Step 03 – Once

Basic GridManager Library – library for MetaTrader 5

Basic GridManager Library - library for MetaTrader 5
The library contains basic public methods to manage grids: public:                      GridManager(ENUM_GRID_DIRECTION direction, double grid_initial_lot_size, int grid_gap_points, double grid_profit_percent);                     ~GridManager() {};    void              SetGridMagicNumber(ulong magic);    void              SetGridMaxDD(double max_dd_percent);    void              SetGridMultiplier(double lot_multiplier);    void              Start(void);    void              Update(void);    void              CloseGrid();    double            GridPnL();    int               CountPositions(); In above code: MaxDD stands for “maximum allowed drawdown”. This value is disabled by

A Code block to detect A “New Candle/Bar” using bars history (very effective way) – expert advisor for MetaTrader 5

A Code block to detect A "New Candle/Bar" using bars history (very effective way) - expert for MetaTrader 5
In previous code I used the time to detect a new bar. This time let’s use the bars count to detect a new bar. it’s way lighter and faster than using the time method. Declare the variables in integer data type to store the bar counts.  Assign the bars count for the “BarsTotal_OnInt” at the