Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Nymphodora), 972 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
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,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
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