Hello,

MISSION:
I am trying to build my first robot, but already having issues.
I coded to buy every minute with stoploss and takeProfit. This is the code:
Code:
function run()
{
	set(LOGFILE);
	//StartDate = 2017;
	BarPeriod = 1;
	Stop = price() - 0.00046;
	TakeProfit = price() + 0.00046;
	enterLong();
	//printf("stoploss is %f, takeprofit is %f", Stop, TakeProfit);
}



THE PROBLEM:
It doesn't show the Take Profit when it enter the trade, either in fxcm MT4 and TradingStation platform, either in Oanda desktop platform. It shows Stop Loss.


Why is that?

Thank you

Last edited by zorroborro; 03/06/18 03:12.