Spezifikation
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
int OnInit()
{
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Script deinit function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
ObjectDelete(_Symbol);
}
//+------------------------------------------------------------------+
//| Script tick function |
//+------------------------------------------------------------------+
void OnTick()
{
double maFast, maSlow;
int idx = StartIndex();
if (_Symbol == "XAUUSD" || _Symbol == "EURUSD" || _Symbol == "USOIL")
{
maFast = iMA(_Symbol, PERIOD_M1, 13, 0, MODE_SMMA, PRICE_CLOSE, idx);
maSlow = iMA(_Symbol, PERIOD_M1, 26, 0, MODE_SMMA, PRICE_CLOSE, idx);
if (maFast > maSlow && maFast > maSlow)
{
int ticket = OrderSend(_Symbol, OP_BUY, 0.1, Ask, 3, Ask-20*Point, Ask+20*Point, "MyOrder", 0, 0, Green);
if (ticket > 0)
{
OrderModify(ticket, OrderOpenPrice(), OrderOpenPrice()-50*Point, OrderOpenPrice()+50*Point, 0, Blue);
Alert("Buy order sent!");
}
}
else if (maFast < maSlow && maFast < maSlow)
{
int ticket = OrderSend(_Symbol, OP_SELL, 0.1, Bid, 3, Bid+20*Point, Bid-20*Point, "MyOrder", 0, 0, Red);
if (ticket > 0)
{
OrderModify(ticket, OrderOpenPrice(), OrderOpenPrice()+50*Point, OrderOpenPrice()-50*Point, 0, Red);
Alert("Sell order sent!");
}
}
}
}
//+------------------------------------------------------------------+
//| Script properties |
//+------------------------------------------------------------------+
input string Expert_Title = "My Trading Bot";
input ulong Expert_MagicNumber = 22655;
input bool Expert_EveryTick = false;
input int Signal_ThresholdOpen = 10;
input int Signal_ThresholdClose = 10;
Bewerbungen
1
Bewertung
Projekte
16
25%
Schlichtung
4
25%
/
25%
Frist nicht eingehalten
1
6%
Frei
2
Bewertung
Projekte
9
22%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
I’m looking for someone experienced with Think or Swim to create a backtesting script for an in-the-money Iron Condor strategy using options on the SPX. The strategy involves setting up 10 contracts of an Iron Condor with a 10-point spread width and a net credit requirement of $11 per contract. The goal is to backtest the performance over the last three years, focusing on trades where the SPX closes outside a
I’m needing a license code for my EA
50 - 100 USD
I currently have a license code that connects to my web server, and I add the account number, client name, and expiration date. I’d like something more automated. Currently I allow clients 10 licenses, but adding for them on my side can get exhausting. I’d like a better solution for myself and clients
Projektdetails
Budget
30+ USD
Für die Entwickler
27
USD
Ausführungsfristen
von 10 bis 15 Tag(e)