You need to enable JavaScript in order to visit our site!
 
Logo PTMC
NAVIGATION
CANCEL
 
or via PTMC account
Restore password
or via PTMC account
Logo PTMC
NAVIGATION
or via PTMC account
Restore password
or via PTMC account
or via PTMC account
Restore password
or via PTMC account
Mac Mac 19.07.2016

[Beta] Break-even Button_v1.0.0

Hi everyone,

You know what I noticed? There are no examples on how to create custom buttons or custom columns. Well, I decided to do one for buttons. You should be able to figure out how to create columns based on this example.

So, it is not supported at this time for programmers to create parameters that can later be modified without messing with the code like it is for indicators and trading systems. The default breakeven offset is 2 pips. Why? Because for some brokers, they charge commissions. So I set it to 2 pips so that it will cover your commission costs and at least give you something from the trade. All you have to do is modify that value to your preference.

Breakeven plug-in settings in Algostudio

Also, if the current trade is in profit by more than the offset pips, an SL will be placed instead. Why did I do this? If you're up 20 pips in a trade and you have TP set to 40 pips, when you press the breakeven button, the SL will be set to breakeven +/- offset pips. This will allow this button to work with that strategy.

If you're not in profit by the offset pip amount, then the breakeven price +/- offset pips will be a TP order. I hope this makes sense. Do this on demo until you understand and until I decide that this should no longer be in beta testing mode. Please let me know if you find any bugs.

A member was already nice enough to do an example with XML parsing, so I didn't feel the need to continue on with the news indicator that I had planned to do. Thanks Burhay Vlad for sharing your knowledge.

Also, no worry, there will be a breakeven button for the chart trader that is in development. I'm working on multiple projects at once and trading forex too. I just wanted to have one for the positions panel too. Maybe later on, PFSoft could give the programmer the ability to add that custom button near the rest of the buttons on the panel. This will allow programmers to create parameters that can later be modified without going into the code.

Breakeven plug-in for PTMC platform in action

As with all my codes, PFSOFT and I are not responsible for any negative thing that may arise from the usage of this plugin. I'm not affiliated with PFSOFT, and I'm only a third-party developer.

As always, happy trading.


Note: Position manipulations are tested in Protrader demo account and work in a proper way. It is highly recommend further to test any automated trade action per each broker and on demo only.

Files
19.07.2016 27
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.
PTMC 是一個專業的交易平台,結合了強大的圖表和分析工具,並可在不同的金融市場進行交易。 它是由 PFSOFT UK LTD 開發的,該公司是全球銀行和經紀商交易技術提供商
© 2024. PTMC 為基於 Protrader 技術的專業交易平台
地址
臺北市大安區羅斯福路3段273號5樓
聯絡我們
電話: +886-2-2367-8583
E-mail: service@kcdatanet.com
社群
© 2024. PTMC 為基於 Protrader 技術的專業交易平台