Topics
Forum Topics not found
Replies
Kate
09 Nov 2013, 09:28
( Updated at: 21 Dec 2023, 09:20 )
RE:
mikero said:
Another annoyance is in sell positions you can be at bottom of screen and unable to look below the current candle because it's at, bottom of screen. (to get round that, I add or remove the tick volume). The mere fact that I can do that manually means your code can very easily accommodate free movement of the entire display since that's exactly what it's doing for the ticks.
You can also squeeze chart dragging price-axis up and down:
@Kate
Kate
09 Nov 2013, 09:08
( Updated at: 21 Dec 2023, 09:20 )
RE:
mikero said:
What I need to see is a true free chart that allows you to extrapolate trends into the future instead of the currently ridiculous 1 inch blank area to the right for future pip movements. eg, on an hourly chart, lucky if you can get 3 more hours of blank when i'm interested in a 24 hour movement (please don't tell me to use the daily chart instead, it would indicate that you gentlemen don't actually use your product)
One particularly annoying aspect of this is you generally can't see the result of a deal map because there's no place to display the closing position details
Do you know that you can drag bar-timer to the left to increase blank area?
@Kate
Kate
30 Oct 2013, 11:12
Try this code:
using System; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.API.Requests; using cAlgo.Indicators; namespace cAlgo.Robots { [Robot(TimeZone = TimeZones.UTC)] public class PipValueTest : Robot { protected override void OnStart() { var symbol = MarketData.GetSymbol("GBPCAD"); Print("PipValue of {0} is {1:0.0000000} ", symbol.Code, GetPipValue(symbol)); Stop(); } private double GetPipValue(Symbol symbol) { var quoteCurrency = symbol.Code.Substring(3, 3); if (quoteCurrency == Account.Currency) return 1; var rate = GetConversionRate(quoteCurrency, Account.Currency); Print("Conversion rate {0} -> {1} is {2:0.000}", quoteCurrency, Account.Currency, rate); var pipValue = symbol.PipSize * rate; return pipValue; } private double GetConversionRate(string fromCurrency, string toCurrency) { Symbol symbol = TryGetSymbol(fromCurrency + toCurrency); if (symbol != null) return symbol.Bid; symbol = TryGetSymbol(toCurrency + fromCurrency); return 1 / symbol.Bid; } private Symbol TryGetSymbol(string symbolCode) { try { Symbol symbol = MarketData.GetSymbol(symbolCode); if (symbol.Bid == 0.0) return null; return symbol; } catch { return null; } } } }
@Kate
Kate
29 Oct 2013, 10:44
Since you try to save last 11 values you can use array instead of list. I guess something like this:
private const int BarsCount = 11; private readonly double[] _Cumm5 = new double[BarsCount]; ... var index = min5.High.Count - 1; for (int i = 0; i < BarsCount; i++) { _Cumm5[i] = _Cumm5[i] + min5.High[index - i] - min5.Low[index - i]; }
@Kate
Kate
02 Dec 2013, 23:12
Last Look vs No Last Look Execution: http://experts.forexmagnates.com/last-look-vs-no-last-look-execution/
@Kate