Skip to content

ForexRobotEasy/Gold-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Gold Extractor

Developer's Site: forexroboteasy.com

Development: Forex Robot Easy Team

Global Variables

  • GoldPrices: Array to store historical data for gold prices
  • BondYield: Array to store historical data for US10Y bond yield
  • USDStrength: Array to store historical data for USD strength

Custom Indicator

  • OnInit(): Initializes the indicator by loading historical data for gold prices, bond yield, and USD strength.

Trading Functions

  • TrackGoldPrice(): Tracks and analyzes the price of gold in relation to bond yield changes and USD strength. Sells gold and buys USD when USD strengthens, and vice versa when USD weakens.
  • CalculateCorrelation(): Calculates the correlation coefficient between two arrays.
  • CalculateStrength(): Calculates strength based on array values.
  • SellGold(): Sells gold.
  • BuyGold(): Buys gold.
  • SellUSD(): Sells USD.
  • BuyUSD(): Buys USD.

User Interface Functions

  • OnChartEvent(): Handles user interface events, such as key presses. Allows users to trigger actions like selling or buying gold or USD.

Main Program

  • OnTick(): Calls the TrackGoldPrice() function to track and analyze gold prices.

Auxiliary Functions

  • Print(): Prints messages to the terminal.

Product Description

The Gold Extractor is a trading algorithm that tracks and analyzes the price of gold in relation to bond yield changes and USD strength. It aims to identify potential trading opportunities by monitoring these factors and executing trades accordingly.

The algorithm uses historical data for gold prices, bond yield, and USD strength to calculate the correlation between gold and bond yield, as well as the overall strength of USD. Based on these calculations, the algorithm determines whether to sell gold and buy USD or vice versa.

The Gold Extractor provides a user-friendly interface that allows users to trigger actions using key presses. By pressing 's', users can sell gold, while pressing 'b' allows them to buy gold. Similarly, pressing 'u' triggers the selling of USD, and pressing 'd' triggers the buying of USD.

Please note that ForexRobotEasy is not the official developer of this product. We are showcasing a sample code that can work as described in this product. To find the official developer of this product, please refer to MQL5.

For detailed reviews and trading results of this product, please visit forexroboteasy.com.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published