The first method, calculate_pips, determines the number of pips that have been generated by this position since it was opened (taking into account any new units added to the position). The second method, calculate_profit_base, calculates the current profit (or loss!) on this position. The third method, calculate_profit_perc, determines the percentage profit on this position. Finally, update_position_price updates the previous two values based on current market data.
Currency trading, often referred to as foreign exchange or Forex, is the purchasing and selling of currencies in the foreign exchange marketplace, done with the objective of making profits. It is referred to as 'speculative Forex trading.' Forex trading is the largest market in the world, with nearly $2 trillion traded on a daily basis, with quick growth projections. The main factor that differentiates currency trading from other types of trading is its liquidity.
In the last Forex Trading Diary Entry (#1) I described how to build an automated trading system that hooks into the OANDA forex brokerage API. I also mentioned that the next steps included constructing a portfolio and risk management overlay for all suggested signals generated by the Strategy component. In this entry of the diary I want to discuss my attempt to build a functioning Portfolio component and how far I've currently progressed.
In this post I will be reviewing the Odin Forex Robot that has been developed by the team over at Forex Robot Trader and runs in the free to download and extremely popular MetaTrader 4 (mt4) trading platform that is available by most forex brokers across the globe. The Odin Forex Robot is fully automated so it will do all of the trading for you, just keep in mind that it is a grid-based forex trading system so use sensible lot sizes and do not over leverage your account to avoid a margin call / stop out. For best results with the Odin Forex Robot, I would personally use a true ECN forex broker which can help lower trade costs and give good bid / ask prices with the amount of liquidity they have. As with any forex system, Odin Forex Robot will perform best with low spreads, low slippage and low commissions. Odin Forex Robot is suitable for any level of trader from beginners to the more advanced with easy to follow setup instructions provided by the developers.
I've made use of the os library to retrieve two environment variables (ENVVARS). The first is the API access token and the second is the OANDA account ID. These can be stored in a suitable environment file that is loaded on boot-up of the system. In Ubuntu, you can use the hidden .bash_profile file in your home directory. For instance, using your favourite text editor (mine is Emacs), you can type:
For securities, the definition of margin includes three important concepts: the Margin Loan, the Margin Deposit and the Margin Requirement. The Margin Loan is the amount of money that an investor borrows from his broker to buy securities. The Margin Deposit is the amount of equity contributed by the investor toward the purchase of securities in a margin account. The Margin Requirement is the minimum amount that a customer must deposit and it is commonly expressed as a percent of the current market value. The Margin Deposit can be greater than or equal to the Margin Requirement. We can express this as an equation:
I have been using the Piphiker forex robot for almost 3 months and I am really impressed, more than 200% profit. I work long hours during the week so I don’t have time to trade , the forex robot is ideal for me , as long as one is not greedy by over leveraging and you are patient and let the EA do it’s thing, you will find yourself with a lot of profit

The first method, calculate_pips, determines the number of pips that have been generated by this position since it was opened (taking into account any new units added to the position). The second method, calculate_profit_base, calculates the current profit (or loss!) on this position. The third method, calculate_profit_perc, determines the percentage profit on this position. Finally, update_position_price updates the previous two values based on current market data.
Currency trading, often referred to as foreign exchange or Forex, is the purchasing and selling of currencies in the foreign exchange marketplace, done with the objective of making profits. It is referred to as 'speculative Forex trading.' Forex trading is the largest market in the world, with nearly $2 trillion traded on a daily basis, with quick growth projections. The main factor that differentiates currency trading from other types of trading is its liquidity.
The currency exchange rate is the rate at which one currency can be exchanged for another. It is always quoted in pairs like the EUR/USD (the Euro and the US Dollar). Exchange rates fluctuate based on economic factors like inflation, industrial production and geopolitical events. These factors will influence whether you buy or sell a currency pair.

How can you avoid this unanticipated surprise? Margin calls can be effectively avoided by carefully monitoring your account balance on a regular basis, and by using stop-loss orders on every position to minimise the risk. Another smart action to consider is to implement risk management within your trading. By managing your the potential risks effectively, you will be more aware of them, and you should also be able to anticipate them and potentially avoid them altogether.
We also apply a concentrated margining requirement to Margin accounts. An account's two largest positions and their underlying derivatives will be re-valued using the worst case scenario within a +/- 30% scanning range. The remaining positions will be re-valued based upon a move of +/-5%. If the concentrated margining requirement exceeds that of the standard rules based margin required, then the newly calculated concentrated margin requirement will be applied to the account.
One of the unique features of TradingDiary Pro which you cannot find in any trading journal software is the options strategy support. TradingDiary Pro is the perfect solution for an options trading journal and tracking your stock and futures options strategies. What is an options strategy? Options strategy is simultaneously buying or selling one or […]
The market values/prices used to compute the equity or margin requirement in an Interactive account may differ from the price disseminated by exchanges or other market data sources, and may represent Interactive's valuation of the product. Among other things, Interactive may calculate its own index values, Exchange Traded Fund values or derivatives values, and Interactive may value securities or futures or other investment products based on bid price, offer price, last sale price, midpoint or using some other method. Interactive may use a valuation methodology that is more conservative than the marketplace as a whole.
In the last Forex Trading Diary Entry (#1) I described how to build an automated trading system that hooks into the OANDA forex brokerage API. I also mentioned that the next steps included constructing a portfolio and risk management overlay for all suggested signals generated by the Strategy component. In this entry of the diary I want to discuss my attempt to build a functioning Portfolio component and how far I've currently progressed.
The majority of the volume in currency trading is confined to only 18 currency pairs compared to the thousands of stocks that are available in the global equity markets. Although there are other traded pairs outside of the 18, the eight currencies most often traded are the U.S. dollar (USD), Canadian dollar (CAD), euro (EUR), British pound (GBP), Swiss franc (CHF), New Zealand dollar (NZD), Australian dollar (AUD) and the Japanese yen (JPY). Although nobody would say that currency trading is easy, having far fewer trading options makes trade and portfolio management an easier task.
Let's take a couple of moments to review what we've learned! Currency trading, often referred to as foreign exchange or Forex, is the purchasing and selling of currencies in the foreign exchange marketplace, and is done with the objective of making profits. Because it is liquid, currency trading differs from other types of trading. Currency exchanges are expressed in currency pairs (two different currencies together), using a format that expresses both the country and the type of money.
Although forex (FX) is the largest financial market in the world, it is relatively unfamiliar terrain for retail traders. Until the popularization of internet trading, FX was primarily the domain of large financial institutions, multinational corporations, and hedge funds. However, times have changed, and individual retail traders are now hungry for information on forex.
Forex robot developers have many reasons to publish their inventions for free; they may be promoting a premium version up-sell of the free one and we think that this is the case with Blessing 3 EA or may be willing to prove their professionalization dealing with Forex market to attract customers to subscribe in some other related paid service provided by the same developer or they might be just giving it away!
The majority of the volume in currency trading is confined to only 18 currency pairs compared to the thousands of stocks that are available in the global equity markets. Although there are other traded pairs outside of the 18, the eight currencies most often traded are the U.S. dollar (USD), Canadian dollar (CAD), euro (EUR), British pound (GBP), Swiss franc (CHF), New Zealand dollar (NZD), Australian dollar (AUD) and the Japanese yen (JPY). Although nobody would say that currency trading is easy, having far fewer trading options makes trade and portfolio management an easier task.
Leveraged trading in foreign currency or off-exchange products on margin carries significant risk and may not be suitable for all investors. We advise you to carefully consider whether trading is appropriate for you based on your personal circumstances. Forex trading involves risk. Losses can exceed deposits. We recommend that you seek independent advice and ensure you fully understand the risks involved before trading.

A Portfolio Margin account can provide lower margin requirements than a Margin account. However, for a portfolio with concentrated risk, the requirements under Portfolio Margin may be greater than those under Margin, as the true economic risk behind the portfolio may not be adequately accounted for under the static Reg T calculations used for Margin accounts. Customers can compare their current Reg T margin requirements for their portfolio with those current projected under Portfolio Margin rules by clicking the Try PM button from the Account Window in Trader Workstation (demo or customer account).


Imagine that you have $10,000 on your account account, and you have a losing position with a margin evaluated at $1,000. If your position goes against you, and it goes to a $9,000 loss, the equity will be $1,000 (i.e $10,000 - $9,000), which equals the margin. Thus, the margin level will be 100%. Again, if the margin level reaches the rate of 100%, you can't take any new positions, unless the market suddenly turns around and your equity level turns out to be greater than the margin.
For securities, the definition of margin includes three important concepts: the Margin Loan, the Margin Deposit and the Margin Requirement. The Margin Loan is the amount of money that an investor borrows from his broker to buy securities. The Margin Deposit is the amount of equity contributed by the investor toward the purchase of securities in a margin account. The Margin Requirement is the minimum amount that a customer must deposit and it is commonly expressed as a percent of the current market value. The Margin Deposit can be greater than or equal to the Margin Requirement. We can express this as an equation:
Often, closing one losing position will take the margin level Forex higher than 5%, as it will release the margin of that position, so the total used margin will decrease and consequently the margin level will increase. The system often takes the margin level higher than 5%, by closing the biggest position first. If your other losing positions continue losing and the margin level reaches 5% once more, the system will just close another losing position.

Trading on a margin can have varying consequences. It can influence your trading experience both positively and negatively, with both profits and losses potentially being seriously augmented. Your broker takes your margin deposit and then pools it with someone else's margin Forex deposits. Brokers do this in order to be able to place trades within the whole interbank network.
Currency trading, often referred to as foreign exchange or Forex, is the purchasing and selling of currencies in the foreign exchange marketplace, done with the objective of making profits. It is referred to as 'speculative Forex trading.' Forex trading is the largest market in the world, with nearly $2 trillion traded on a daily basis, with quick growth projections. The main factor that differentiates currency trading from other types of trading is its liquidity.
It's not so easy to add a forex robot review every day to our list, first we carefully select the most promising and solid systems in the market taking into consideration many factors including its reputation and previous real trader reviews, then when we decide to review it, much time will be necessary to complete a satisfying review to the traders seeking information and brief analysis about that software performance. Many Forex systems are already now on our schedule and we are trying hard to add them ASAP.
Back tests – You can read my forex robot reviews to see if the forex robot has back tests which will give you a good idea how it performed historically, some forex robots even back test as for as 15+ years! Ideally, you would want back tests to have been done using real tick data and spreads, thus making the forex robot back test results as accurate as possible in the mt4 strategy tester
The market values/prices used to compute the equity or margin requirement in an Interactive account may differ from the price disseminated by exchanges or other market data sources, and may represent Interactive's valuation of the product. Among other things, Interactive may calculate its own index values, Exchange Traded Fund values or derivatives values, and Interactive may value securities or futures or other investment products based on bid price, offer price, last sale price, midpoint or using some other method. Interactive may use a valuation methodology that is more conservative than the marketplace as a whole.
(Note that the leverage shown in Trades 2 and 3 is available for Professional clients only. A Professional client is a client who possesses the experience, knowledge and expertise to make their own investment decisions and properly assess the risks that these incur. In order to be considered to be Professional client, the client must comply with MiFID ll 2014/65/EU Annex ll requirements.)
×