Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (ozgur, TipmyPip), 722 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
TakeProfit is not shown in broker platform(Oanda and FXCM MT4) #471484
03/06/18 03:09
03/06/18 03:09
Joined: Mar 2018
Posts: 2
Ontario
Z
zorroborro Offline OP
Guest
zorroborro  Offline OP
Guest
Z

Joined: Mar 2018
Posts: 2
Ontario
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.
Re: TakeProfit is not shown in broker platform(Oanda and FXCM MT4) [Re: zorroborro] #471489
03/06/18 12:17
03/06/18 12:17
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Thats ok. You dont want the broker to know your stop and takeprofit, do you? wink

http://manual.zorro-project.com/stop.htm

Re: TakeProfit is not shown in broker platform(Oanda and FXCM MT4) [Re: Spirit] #471490
03/06/18 12:43
03/06/18 12:43
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
The broker API does not submit take profit to the broker. Instead, it withholds the TP value until it is time to close the trade/position.

Re: TakeProfit is not shown in broker platform(Oanda and FXCM MT4) [Re: AndrewAMD] #471501
03/06/18 20:12
03/06/18 20:12
Joined: Mar 2018
Posts: 2
Ontario
Z
zorroborro Offline OP
Guest
zorroborro  Offline OP
Guest
Z

Joined: Mar 2018
Posts: 2
Ontario
Originally Posted By: Spirit
Thats ok. You dont want the broker to know your stop and takeprofit, do you? wink

http://manual.zorro-project.com/stop.htm


Originally Posted By: AndrewAMD
The broker API does not submit take profit to the broker. Instead, it withholds the TP value until it is time to close the trade/position.


@Spirit, Oh I see:
Quote:

All stop, profit, trail, or entry limits are normally handled by software and controlled at each tick. They are not sent to the broker's server (except for OrderLimit and the 'fake' stop given by StopFactor) and thus not visible to the broker, this way preventing "stop hunting" or similar practices.

But then how is the Stop loss visible?
But I have to say, its not the one I set up.

@AndrewAMD, @Spirit, I would stil like to have a report for myself of all the trades with SL and TP I did. Is it possible with zorro to create csv file for report?
Thanks guys

Re: TakeProfit is not shown in broker platform(Oanda and FXCM MT4) [Re: zorroborro] #471503
03/06/18 21:01
03/06/18 21:01
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Originally Posted By: zorroborro
But then how is the Stop loss visible?
Stop is definitely in the broker API, but not TP.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1