Topics
Replies
pennyfx
01 Sep 2014, 19:10
That line of code can also be expressed like this.
double targetPrice = 0.0; if(TradeType == TradeType.Buy){ // Take the current Ask (since we're buying) subtract the Target (probably for a better entry) targetPrice = Symbol.Ask - Target * Symbol.PipSize; }else { // Take the current Bid(since we're selling) add the Target // Target * Symbol.PipSize // Target is probably a number like 5.5, so multiplying it by PipSize turns it into 0.00055 targetPrice = Symbol.Bid + Target * Symbol.PipSize }
@pennyfx
pennyfx
15 Aug 2013, 02:44
I have multiple robots in one DLL and I use them as base classes in cAlgo.
For example:
public class CoolRobot : SuperRobotInDLL { // add all public settings [Parameter("Take Profit")] public int TakeProfit; public override void OnStart(){ // pass your settings down to the base class here base.TakeProfit = this.TakeProfit; base.OnStart(); } }
There is probably a better way to pass the settings down to the base class, but this works for now.
@pennyfx
pennyfx
15 Aug 2013, 02:33
RE:
pennyfx said:
I have a dynamic grid martingale system that works on all pairs. Still testing, but getting ready to unleash it on real money soon.
https://www.myfxbook.com/portfolio/demo-26-bots/640254
Here's the new link. https://www.myfxbook.com/portfolio/26-bots/662349
@pennyfx
pennyfx
01 Sep 2014, 19:12
What are we looking at here? I see 3 EURUSD charts from MT4 with cAlgo below?
@pennyfx