Forum
Algorithms
Indicators
cBots
Plugins
Add new algorithm
VPS
Algo Consultants
Jobs
API
cTrader Automate API
FIX API Guides
Open API
Suggestions
Help
Platform
Search
Not logged in
Log in
Sign up
VN
vn18
@vn18
0 follower(s)
0 following
4 subscription(s)
Stats
Algorithms
Forum
Followers
Following
Subscriptions
Followers
Following
Subscriptions
Note
that publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section, please use the
Copyright Infringement Notification
form to submit a claim.
Free
Martingale马丁机器人
0
0
134
by
vn18
26 Apr 2024, 08:06
//这是一个简单的马丁格尔策略,其交易逻辑如下://在OnStart()方法中,初始化一个Random对象,然后执行一个市价单,交易量为InitialVolume,交易方向为随机的买入或卖出。//当有一个持仓被平仓时,OnPositionsClosed()方法被调用。如果这个持仓的标签为“Martingale”,并且交易品种为当前的交易品种,那么就会执行以下操作://a. 如果这个持仓的毛利润大于0,那么就再次执行一个市价单,交易量为InitialVolume,交易方向为随机的买入或卖出。//b. 如果这个持仓的毛利润小于等于0,那么就再次执行一个市价单,交易量为上一个持仓的交易量的两倍,交易方向与上一个持仓的交易方向相反。//如果执行市价单时出现了“无资金”错误,那么就停止策略的执行。//在每个市价单中,止损和止盈的值都是固定的,分别为StopLoss和TakeProfit参数的值。
Free
交易面板支持快捷键cbots
0
0
100
by
vn18
26 Apr 2024, 08:09
下单面板1.支持鼠标下单;2.支持快捷键下单(输入法调整为英文输入法才能使用快捷键交易);3.下单自动设置止损和止盈;4.支持复盘练习。