Topics
Replies
breakermind
15 Jun 2016, 10:33
cmirror browser error
vahid100 said:
Hello,
when I click on my Account number by cMirror platform, nothing to happen and cMirror doesnot show the characteristic of my account!
i can see only other people accounts.
there is a problem with the site.
Don't use firefox (there is something wrong whit it)
use opera browser it will be fine.
Nice day.
@breakermind
breakermind
14 Mar 2016, 16:45
RE: RE: RE:
breakermind said:
Hi,
set dropbox backup > Documents folder
or create in C# app --> backup to zip and copy to dropbox folder
http://www.codeproject.com/Articles/37887/C-Zip-Files-and-or-Folders
Bye
or use hubic.com
@breakermind
breakermind
14 Mar 2016, 16:44
RE: RE:
Hi,
set dropbox backup > Documents folder
or create in C# app --> backup to zip and copy to dropbox folder
http://www.codeproject.com/Articles/37887/C-Zip-Files-and-or-Folders
Bye
@breakermind
breakermind
13 Mar 2016, 20:12
Mail C#
Hi,
1 spotware
https://www.youtube.com/watch?v=P_s6YHv3WXw
2 Try search C# mail
http://stackoverflow.com/questions/9201239/send-e-mail-via-smtp-using-c-sharp
3 open free hosting account ( php mail function)
create php file which send email and call it from cBot .
@breakermind
breakermind
11 Dec 2015, 15:47
( Updated at: 21 Dec 2023, 09:20 )
RE:
Hi,
Add area charts to cTrader
@breakermind
breakermind
02 Dec 2015, 18:23
RE:
Spotware said:
Dear Trader,
Could you please tell us your OS version and Browser version?
Hi,
It is no longer relevant.
By..
@breakermind
breakermind
01 Dec 2015, 20:46
RE:
Spotware said:
Dear Trader,
We will consider providing users the ability to signal providers to block the copy signals for individual traders by setting the "private" strategy with specific followers set in the future. Additionally, you can vote for your suggestion in: http://vote.spotware.com/forums/229166-ideas-and-suggestions-for-ctrader-and-calgo/suggestions/10644087-cmirror-allow-create-private-signals-and-block-u.
Regarding your issue about the new strategy could you please some screenshots showing it? If the strategy name is not shown in one of the screenshots, could you please tell us your strategy name too?
I heard it at least 3 years ago.
I think you block something (I got bored of writing to support with cmirror errors).
Thanks
@breakermind
breakermind
01 Dec 2015, 20:40
RE:
Spotware said:
Dear breakermind,
How to transfer account from one ctid to another one or how delete account from ctid?
In order to be able to move your accounts between your cTIDs you need to unlink them first.
Currently we do not provide users the ability to unlink/remove their trading accounts from their cTID. We will provide it in the near future.
And why i can login with ctid to my accoun even if I change password for my ctrader account?!
why I can log in using ctid when I change the password to my ctrader account?
This happens because the account is now linked to your cTID. The authentication process of a linked account doesn't include the password the user is required to insert to be able to log in when the account is not linked.
Just if I guess one password then can destroy every account or clean all user accounts from capital.
Nice very nice.
@breakermind
breakermind
01 Dec 2015, 18:34
RE:
Paul_Hayes said:
If you want to copy to a VPS for example; just install the cBot like you would normally would and copy the TweetInvi assemblies across, create a folder in your robots directory where all the bots live and put the library files there so you can share the assemblies with other robots.
in cAlgo click on manage references of your robot then choose Libraries, browse to the folder where the Tweetinvi library files are located and add them, its a very simple and easy procedure.
There are some very good libraries out there which wrap up complex logic for programming languages and provide simple logic for what was once complex tasks, Microsoft has been doing this for years, their framework is just many libraries of wrapped up logic. The TweekInvi makes life very simple and increases productivity and simplicity allowing rapid development of software.
and then I saw error can not find Twitter Credentials :D:D
My example works ok only i need change message text for each next tweet (or add time to msg).
Thanks for help.
@breakermind
breakermind
01 Dec 2015, 16:10
RE:
I add new user and new signal but in search does not display !
Something is wrong with CMIRROR !
Again: Can not retrive data from server.
@breakermind
breakermind
01 Dec 2015, 13:41
RE:
And why i can login with ctid to my accoun even if I change password for my ctrader account?!
why I can log in using ctid when I change the password to my ctrader account?
@breakermind
breakermind
30 Nov 2015, 21:43
RE: RE:
Send msg and display this (but very slow):
30/11/2015 19:41:01.433 | Twitter Post Error: Input string was not in a correct format., authHeader:
@breakermind
breakermind
30 Nov 2015, 21:26
RE:
I found this (some errors recive) but send my text
//function to post message to twitter (parameter string message) private void SendToTwitter(string message) { // Add this references first //using System.Net; //using System.IO; //using System.Security.Cryptography; //using System.Text; //The facebook json url to update the status string URL = "https://api.twitter.com/1.1/statuses/update.json"; //set the access tokens (REQUIRED) string oauth_consumer_key = ""; string oauth_consumer_secret = ""; string oauth_token = ""; string oauth_token_secret = ""; // set the oauth version and signature method string oauth_version = "1.0"; string oauth_signature_method = "HMAC-SHA1"; // create unique request details string oauth_nonce = Convert.ToBase64String(new ASCIIEncoding().GetBytes(DateTime.Now.Ticks.ToString())); System.TimeSpan timeSpan = (DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc)); string oauth_timestamp = Convert.ToInt64(timeSpan.TotalSeconds).ToString(); // create oauth signature string baseFormat = "oauth_consumer_key={0}&oauth_nonce={1}&oauth_signature_method={2}" + "&oauth_timestamp={3}&oauth_token={4}&oauth_version={5}&status={6}"; string baseString = string.Format(baseFormat, oauth_consumer_key, oauth_nonce, oauth_signature_method, oauth_timestamp, oauth_token, oauth_version, Uri.EscapeDataString(message)); string oauth_signature = null; using (HMACSHA1 hasher = new HMACSHA1(ASCIIEncoding.ASCII.GetBytes(Uri.EscapeDataString(oauth_consumer_secret) + "&" + Uri.EscapeDataString(oauth_token_secret)))) { oauth_signature = Convert.ToBase64String(hasher.ComputeHash(ASCIIEncoding.ASCII.GetBytes("POST&" + Uri.EscapeDataString(URL) + "&" + Uri.EscapeDataString(baseString)))); } // create the request header string authorizationFormat = "OAuth oauth_consumer_key=\"{0}\", oauth_nonce=\"{1}\", " + "oauth_signature=\"{2}\", oauth_signature_method=\"{3}\", " + "oauth_timestamp=\"{4}\", oauth_token=\"{5}\", " + "oauth_version=\"{6}\""; string authorizationHeader = string.Format(authorizationFormat, Uri.EscapeDataString(oauth_consumer_key), Uri.EscapeDataString(oauth_nonce), Uri.EscapeDataString(oauth_signature), Uri.EscapeDataString(oauth_signature_method), Uri.EscapeDataString(oauth_timestamp), Uri.EscapeDataString(oauth_token), Uri.EscapeDataString(oauth_version)); HttpWebRequest objHttpWebRequest = (HttpWebRequest)WebRequest.Create(URL); objHttpWebRequest.Headers.Add("Authorization", authorizationHeader); objHttpWebRequest.Method = "POST"; objHttpWebRequest.ContentType = "application/x-www-form-urlencoded"; using (Stream objStream = objHttpWebRequest.GetRequestStream()) { byte[] content = ASCIIEncoding.ASCII.GetBytes("status=" + Uri.EscapeDataString(message)); objStream.Write(content, 0, content.Length); } var responseResult = ""; try { //success posting WebResponse objWebResponse = objHttpWebRequest.GetResponse(); StreamReader objStreamReader = new StreamReader(objWebResponse.GetResponseStream()); responseResult = objStreamReader.ReadToEnd().ToString(); Print(responseResult); } catch (Exception ex) { //throw exception error responseResult = "Twitter Post Error: " + ex.Message.ToString() + ", authHeader: " + authorizationHeader; Print(responseResult); } }
Why?
@breakermind
breakermind
30 Nov 2015, 20:38
RE:
Spotware said:
Dear Trader,
There is no method offered in cAlgo to post messages to social networking sites. However, you can take advantage of the C# language used in cAlgo and you can write some methods of your own to achieve it. A simple search using any search engine will show you several examples on how to post something to a social networking site.
I hope that someone already wrote a simple example :). I do not want again to look for the simplest solutions.
Thanks for Your time.
@breakermind
breakermind
27 Nov 2015, 12:37
http://ctdn.com/forum/cbot-support/6963
/forum/cbot-support/6963
@breakermind
breakermind
25 Oct 2015, 17:32
RE: RE:
Why I cant add cbot?
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class AccessDenied6 : Robot { // test on 1000000 USD [Parameter("MA Type")] public MovingAverageType MAType { get; set; } [Parameter()] public DataSeries SourceSeries { get; set; } [Parameter("Slow Periods", DefaultValue = 50)] public int SlowPeriods { get; set; } [Parameter("Quantity (Lots)", DefaultValue = 1, MinValue = 0.01, Step = 0.01)] public double Quantity { get; set; } [Parameter("Stop Loss", DefaultValue = 100)] public int StopLoss { get; set; } [Parameter("Take Profit", DefaultValue = 300)] public int TakeProfit { get; set; } private MovingAverage slowMa; private const string label = "Sample Trend cBot"; int nextopen = 0; protected override void OnStart() { slowMa = Indicators.MovingAverage(SourceSeries, SlowPeriods, MAType); } protected override void OnTick() { MarketSeries data = MarketData.GetSeries(Symbol, TimeFrame.Hour); DataSeries series = data.Close; int index = series.Count - 1; double close = data.Close[index]; double high = data.High[index]; double low = data.Low[index]; double open = data.Open[index]; Int32 opentime = (Int32)(data.OpenTime[index].Subtract(new DateTime(1970, 1, 1))).TotalSeconds; var longPosition = Positions.Find(label, Symbol, TradeType.Buy); var shortPosition = Positions.Find(label, Symbol, TradeType.Sell); var currentSlowMa = slowMa.Result.Last(0); var previousSlowMa = slowMa.Result.Last(1); if (nextopen != opentime) { if (previousSlowMa < open) longPosition = null; if (previousSlowMa > open) shortPosition = null; } if (previousSlowMa < open && longPosition == null) { if (shortPosition != null) ClosePosition(shortPosition); ExecuteMarketOrder(TradeType.Buy, Symbol, VolumeInUnits, label, StopLoss, TakeProfit); } else if (previousSlowMa > open && shortPosition == null) { if (longPosition != null) ClosePosition(longPosition); ExecuteMarketOrder(TradeType.Sell, Symbol, VolumeInUnits, label, StopLoss, TakeProfit); } } private long VolumeInUnits { get { return Symbol.QuantityToVolume(Quantity); } } } }
@breakermind
breakermind
13 Oct 2015, 15:25
RE:
kaliszczak91@gmail.com said:
Niestety żaden z powyższych nie działa tak jak powinien.
Chciałbym aby to działało w taki sposób, że po przyjęciu zlecenia wystawiany jest SL załóżmy 15 pipsów i jest on od razy SL kroczącym, czyli każdy ruch na +, przesuwa mój SL.
/forum/calgo-reference-samples/825 ten nie działa tak jak powinien bo jeśli ustawie obie wartości po 15 pipsów, to SL w ogóle się nie przesuwa, próbowałem wszystkiekombinacje i nic nie działało poprawnie po za przypadkiem gdy ustawiłem (tralling) na 1 to wtedy po zyskaniu jednego pipsa Sl szedł za ceną ale tylko 1 pips niżej, a niestety to za mało.
A co do tego:
https://github.com/breakermind/cAlgoRobotsIndicators/blob/master/oooDBoo
breakermind, czy mógłbyś mi powiedzieć jak to ustawić, ponieważ on ma bardzo dużo pól do wpisania,
Z góry dzięki
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class oodboo : Robot { [Parameter(DefaultValue = 50, MinValue = 0)] public int TrailingStop { get; set; } protected override void OnStart() { Print("Open position !!!"); } protected override void OnTick() { //===================================================== Trailing if (TrailingStop > 0) { foreach (var openedPosition in Positions) { Position Position = openedPosition; if (Position.TradeType == TradeType.Buy) { //double distance = Symbol.Bid - Position.EntryPrice; //if (distance >= TrailingStop * Symbol.PipSize) //{ double newStopLossPrice = Math.Round(Symbol.Bid - TrailingStop * Symbol.PipSize, Symbol.Digits); if (Position.StopLoss == null || newStopLossPrice > Position.StopLoss) { ModifyPosition(Position, newStopLossPrice, Position.TakeProfit); } //} } else { //double distance = Position.EntryPrice - Symbol.Ask; //if (distance >= TrailingStop * Symbol.PipSize) //{ double newStopLossPrice = Math.Round(Symbol.Ask + TrailingStop * Symbol.PipSize, Symbol.Digits); if (Position.StopLoss == null || newStopLossPrice < Position.StopLoss) { ModifyPosition(Position, newStopLossPrice, Position.TakeProfit); } //} } } } } protected override void OnStop() { Print("cBot was stoped."); } } }
Ten tak działa.
@breakermind
breakermind
16 Jun 2016, 10:40 ( Updated at: 21 Dec 2023, 09:20 )
cmirror errors
Spotware said:
Newest version 47 clear cahce and :
It dosen't work:
@breakermind