Information
Username: | mindbreaker |
Member since: | 19 Jul 2014 |
Last login: | 19 Jul 2014 |
Status: | Active |
Activity
Where | Created | Comments |
---|---|---|
Algorithms | 0 | 9 |
Forum Topics | 43 | 266 |
Jobs | 0 | 9 |
About
500 pips levels
Week Open price level
#WTI (Crude oil)
#US30 (DJIA)
GBPJPY, GBPAUD
Max. 1 Lot from 10000 USD
Last Algorithm Comments
Last Jobs Comments
Come on, one line you can not add?
add this
if (Symbol.Spread < Spr)
before
ExecuteOrder((int)position.Volume * 2, position.TradeType);
Line:
if (Symbol.Spread < Spr) ExecuteOrder((int)position.Volume * 2, position.TradeType);
It works for me (positions are opened).
install again calgo or ctrader.
https://en.wikipedia.org/wiki/Millisecond
milliseconds:
System.Threading.Thread.Sleep(Minute * 60 * 1000);
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
using System.Diagnostics;
using System.Threading;
namespace cAlgo
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class Txt : Robot
{
[Parameter("Initial Volume", DefaultValue = 1000, MinValue = 0)]
public int InitialVolume { get; set; }
[Parameter("Stop Loss", DefaultValue = 3)]
public int StopLoss { get; set; }
[Parameter("Take Profit", DefaultValue = 3)]
public int TakeProfit { get; set; }
[Parameter("Delay minute", DefaultValue = 1)]
public int Minute { get; set; }
[Parameter("Spread", DefaultValue = 0.006)]
public double Spr { get; set; }
private Random random = new Random();
//-----------------------------------------------------------
protected override void OnStart()
{
Positions.Closed += OnPositionsClosed;
Order1();
}
//-----------------------------------------------------------
private void Order1()
{
Print(Symbol.Spread);
if (Symbol.Spread < Spr){
ExecuteOrder(InitialVolume, GetRandomTradeType());
}else{
var stopwatch = Stopwatch.StartNew();
System.Threading.Thread.Sleep(Minute * 6000);
Print(stopwatch.ElapsedMilliseconds);
Order1();
}
}
//-----------------------------------------------------------
private void ExecuteOrder(long volume, TradeType tradeType)
{
var result = ExecuteMarketOrder(tradeType, Symbol, volume, "Martingale", StopLoss, TakeProfit);
if (result.Error == ErrorCode.NoMoney)
Stop();
}
//-----------------------------------------------------------
private void OnPositionsClosed(PositionClosedEventArgs args)
{
Print("Closed");
var position = args.Position;
{
if (position.Label != "Martingale" || position.SymbolCode != Symbol.Code)
return;
if (position.Pips > 0)
Order1();
if (position.GrossProfit > 0)
{
ExecuteOrder(InitialVolume, GetRandomTradeType());
}
else
{
ExecuteOrder((int)position.Volume * 2, position.TradeType);
}
}
}
private TradeType GetRandomTradeType()
{
return random.Next(2) == 0 ? TradeType.Buy : TradeType.Sell;
}
}
}
Hi
look at this charts https://breakermind.com/forex (You can come to some sensible conclusions)
I prefer putting orders every 500 pips levels or month(week) open price line (slowly and you can catch more pips than you play everyday).
Order volume max : 0.01 (1000) microlot from each 100$ and hold position long time. And play without Stop Loss
And play with more than 10 000$ balance and max 25-50 % per month i think slow and no stress.
Good accounts for start (0.01 = 100) http://instaforex.com You can play from 1$ but only mt4 and You can copy positions from traders on server
Contest with copy positions on server:
https://www.dukascopy.com/tradercontest/
Have a nice day.
Ps. You need try .....
And besides, you can copy here:
From: 100$ for free (and do not have too many takers):
https://www.dukascopy.com/tradercontest/
From 10$ and You can get 100$ no deposit bonus if need
https://www.instaforex.com/forexcopy_system.php
https://www.instaforex.com/pamm_system.php
=======================================================
If enough traders signal system with Dukascopy contest users - I am able to write ?
(there is > 500 users and signals from robots)
Have a nice day
Hi,
go to dukascopy copy all signals from trader contest and display on your system (10% from user).
If You need only signals on page.
And if these signals are earn - I do not think that you find someone who write it.
Big data - and much power needed and not for 1000$.
Regards.
Hi,
Here is (but without pendings) : https://github.com/breakermind/cAlgoCopier
Bye.
Hi,
Simple but works: /algos/cbots/show/654
Bye.
@RedRhinoFX - it is simple example (but if provider set order only one in a day/week/month for what keep socket connection open all the time) or for what send the same data to the server every tick :)