Replies

pennyfx
01 Sep 2014, 19:12

What are we looking at here?  I see 3 EURUSD charts from MT4 with cAlgo below?


@pennyfx

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
01 Sep 2014, 19:00

You can write the variables out to a shared file or a database.  Personally, I use Redis for sharing data between robots.


@pennyfx

pennyfx
16 Oct 2013, 23:56

RE:

I just switched to a different moving average and everything worked.


@pennyfx

pennyfx
15 Oct 2013, 06:53

RE: RE:

I'm using the correct syntax.

 

ma = Indicators.WellesWilderSmoothing(this.MarketSeries.Close, 90);

int idx = ma.Result.Count-2;
double s1 = ma.Result[idx],
  s2 = ma.Result[idx - 1];


@pennyfx

pennyfx
19 Sep 2013, 09:01

RE: Example: Multi-symbol RSI robot

Does this mean the following code will now return ALL open positions across all pairs ?  If so, this will probably break a lot of Robots.

foreach (Position position in Account.Positions)


@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
07 Aug 2013, 06:59

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

 


@pennyfx