証券会社・FX会社システム接続用のEA開発に使えるコードの書き方

証券会社・FX会社システム接続用のEA開発に使えるコードの書き方

証券会社・FX会社システム接続用のEA開発に使えるコードの書き方をご案内します。 最終更新日:2013/11/26
【通貨毎に固有のパラメータ設定する方法】
EAをチャートに適用の際、通貨毎のパラメータを設定しなくても、 EAのロジックで内部的にパラメータを変更(上書き設定)することが可能です。 以下にEAを適用したチャートが「USDJPY」「EURJPY」の場合に、 パラメータを変更するサンプルコードを記載します。 各通貨に適した値を設定することで、より多くの通貨に対応したEAが開発できるかと思います。 参考になれば幸いです。 int TakeProfit = 250; int StopLoss   = 150; string _symbol; int init() {     _symbol=Symbol();     set_parameter();     return; } void set_parameter() {     if(StringFind(_symbol,"USDJPY",0)>=0){         TakeProfit = 230;         StopLoss   = 120;         return;     }     if(StringFind(_symbol,"EURJPY",0)>=0){         TakeProfit = 240;         StopLoss   = 130;         return;     }     return; }
以上です。 優秀なEAのご出品を心からお待ちしております。
■ Important Matters and Risk Warnings Regarding Investment Products 【Financial Instruments Business Operator】
GogoJungle Inc.
Registration: Director-General of the Kanto Local Finance Bureau (Financial Instruments Business) No. 1960
【Member Association】
Japan Investment Advisers Association
【Fees and Expenses】
The use of software, e-books, investment advisory services, etc., provided on our platform involves purchase prices determined for each product.
Additionally, when conducting actual financial instrument transactions (such as FX or CFD trading), costs such as transaction fees and spreads (the difference between the sell and buy price) may be incurred through the connected brokerage firms.
【Margin and Risk of Loss】
Transactions such as FX (Foreign Exchange Margin Trading) and CFD (Contract for Difference) allow for trading in amounts exceeding the deposited margin.
Therefore, due to sudden fluctuations in target indices (currency, commodity prices, etc.), there is a risk of incurring losses that exceed the deposited margin (loss exceeding principal).
Furthermore, financial instrument transactions involve risks such as price fluctuations, which may result in losses falling below or exceeding the initial investment principal.
【Nature of Services and Trading Entity】
The Company operates a platform (marketplace) providing investment software and information; we do not engage in the buying, selling, mediation, brokerage, or agency of financial instruments on behalf of customers.
The services and information provided are intended as reference for investment decisions and do not guarantee future profits or specific results.
While some services include investment advice, they do not constitute a mandate or solicitation to trade specific financial instruments.
Final investment decisions and the execution of trades must be made at the customer’s own risk and discretion.