指定
// Forex Strategy for Consistency in Profit
// Input parameters
input int FastMAPeriod = 10; // Period for the fast moving average
input int SlowMAPeriod = 30; // Period for the slow moving average
input double StopLossPips = 50; // Stop loss in pips
input double TakeProfitPips = 100; // Take profit in pips
// Global variables
int ticket = 0; // Order ticket number
// Indicator buffers
double fastMABuffer[];
double slowMABuffer[];
// Initialization function
int OnInit()
{
// Define indicator buffers
SetIndexBuffer(0, fastMABuffer);
SetIndexBuffer(1, slowMABuffer);
// Set indicator plot type
SetIndexStyle(0, DRAW_LINE);
SetIndexStyle(1, DRAW_LINE);
// Set indicator colors
SetIndexLabel(0, "Fast MA");
SetIndexLabel(1, "Slow MA");
SetIndexDrawBegin(0, SlowMAPeriod);
SetIndexDrawBegin(1, SlowMAPeriod);
// Set indicator parameters
SetIndexShift(0, 0);
SetIndexShift(1, 0);
SetIndexEmptyValue(0, 0);
SetIndexEmptyValue(1, 0);
// Return successful initialization
return INIT_SUCCEEDED;
}
// Trading function
void OnTick()
{
// Calculate moving averages
ArraySetAsSeries(fastMABuffer, true);
ArraySetAsSeries(slowMABuffer, true);
int fastMA = iMA(Symbol(), 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE);
int slowMA = iMA(Symbol(), 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE);
// Check for a crossover
if (fastMA > slowMA && fastMABuffer[1] <= slowMABuffer[1])
{
// Close any existing positions
if (ticket > 0 && OrderSelect(ticket, SELECT_BY_TICKET))
{
if (OrderClose(ticket, OrderLots(), OrderClosePrice(), Slippage, Red))
{
ticket = 0; // Reset ticket number
}
}
// Open a new buy position
ticket = OrderSend(Symbol(), OP_BUY, 0.1, Ask, Slippage, Ask - StopLossPips * Point, Ask + TakeProfitPips * Point, "Buy Order", 0, 0, Green);
}
else if (fastMA < slowMA && fastMABuffer[1] >= slowMABuffer[1])
{
// Close any existing positions
if (ticket > 0 && OrderSelect(ticket, SELECT_BY_TICKET))
{
if (OrderClose(ticket, OrderLots(), OrderClosePrice(), Slippage, Red))
{
ticket = 0; // Reset ticket number
}
}
// Open a new sell position
ticket = OrderSend(Symbol(), OP_SELL, 0.1, Bid, Slippage, Bid + StopLossPips * Point, Bid - TakeProfitPips * Point, "Sell Order
応答済み
1
評価
プロジェクト
62
8%
仲裁
12
58%
/
42%
期限切れ
1
2%
暇
2
評価
プロジェクト
29
24%
仲裁
3
67%
/
33%
期限切れ
6
21%
暇
3
評価
プロジェクト
2
0%
仲裁
1
0%
/
0%
期限切れ
2
100%
暇
4
評価
プロジェクト
513
33%
仲裁
26
38%
/
46%
期限切れ
7
1%
取り込み中
5
評価
プロジェクト
641
41%
仲裁
21
57%
/
29%
期限切れ
47
7%
仕事中
6
評価
プロジェクト
4
50%
仲裁
4
0%
/
75%
期限切れ
0
暇
類似した注文
SIERRA CHART - AI Program Needed
150+ USD
1. Combination of Market Profiles on daily basis a) this should be combined if the bell curve is similar to the previous day. Rotational day (volume - standard deviation). b) If breakout, new range should be drawn Conclusion: Market profile should be combined on daily after the market is closed 2. Use Vwap indicator, with 0.5 - slow trend, 1.0 - normal trend, 1.5 fast trend. The stop loss should be under the trend
Robotics Artificial Intelligence
100+ USD
I believe in Robotics as a major artificial intellect to function of growth of business.Therefore if you script there is a likelihood of bringing economies of scale.The retrospective of the dynamics of indulgence of work can be economics of scale
there I hope you're doing well I want to convert the tradingview indicator to make an indicator for mt5. And in that, I want to make an automatic robot on the base of the indicator. I have the pine script of that indicator
IBKR trades to MT5 copier
30+ USD
looking for help to get my ibkr automated, i have strategies already built in composer and have JSON for them, i really just need to he setup and explanation on how to maintain it and add new strategies
An EA based on Fibonacci
100 - 300 USD
I am in need of 2 EA based on Fibonacci re-tracement after a high or low is made,each EA will have a hedge trade on it.the hedge trade will be at the 38 percent of the Fibonacci..this will be present on the 2 EA, the 2 EA will have different levels of re-tracement, while the hedge trade will be a continuation (buy/sell stop), while the re-tracement trades will be (buy/sell limit)This EA must work on timeframe ranging
DJANGO EA
30 - 1000 USD
I need smart, professional, and fast programmer for doing this project quickly, that have experience in EA with minimum 500 projects finish, and have good review and reputation from their client Share your link review, if you not qualified, dont apply! I will bidding the programmer from experience, review, reputation, price, and days working My EA using Moving Average, Average True Range, and using consecutives
プロジェクト情報
予算
30+ USD
開発者用
27
USD
締め切り
最低 1 最高 30 日