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.

Classic and Virtual Trailing – expert advisor for MetaTrader 4

Classic and Virtual Trailing - expert for MetaTrader 4
Classic Trailing => Use Stop Loss to Trail and it does reflect in your broker serverVirtual Trailing => Does not Trail using Stop Loss and it does not reflect in your broker server.Trailing Gap = A Gap from Bid/Ask PriceTrailing Start = Distance from Order Entry Price (Order Open Price) to start trailing Classic and

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

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

Simple continuous trend-following strategy for buying and selling based on predefined conditions – expert advisor for MetaTrader 4

Simple continuous trend-following strategy for buying and selling based on predefined conditions - expert for MetaTrader 4
This MetaTrader 4 (MT4) script implements a simple continuous trend-following strategy for buying and selling based on predefined conditions. Here’s a breakdown of the script: Initialization: The script initializes and prints a message when initialized successfully. Deinitialization: The script deinitializes and prints a message when deinitialized. OnTick Function: This function executes whenever there’s a new

Trailing_StopLoss_for All_orders_and_symbols – expert advisor for MetaTrader 4

Trailing_StopLoss_for All_orders_and_symbols - expert for MetaTrader 4
This script will trail the stop loss of all open buy and sell orders. Adjust the TrailStart and TrailStop parameters to your preferred levels. This is a basic example and can be further optimized and customized based on your specific requirements. Trailing_StopLoss_for All_orders_and_symbols – expert for MetaTrader 4

Three White Soldiers and Three Black Crows for Chart Symbol – expert advisor for MetaTrader 4

Three White Soldiers and Three Black Crows for Chart Symbol - expert for MetaTrader 4
This script is a trading strategy called “Three White Soldiers and Three Black Crows” implemented in MQL4. It identifies patterns in price action known as “Three White Soldiers” and “Three Black Crows” and executes buy or sell trades accordingly. Here’s a brief description of the key components of your script: The script is designed to