Home
last modified time | relevance | path

Searched refs:trade (Results 1 – 25 of 6075) sorted by relevance

12345678910>>...243

/dports/games/wolfpack/empire-4.4.1/src/lib/commands/
H A Dtrad.c68 struct trdstr trade; in c_trade() local
105 trade.trd_price, trade.trd_maxbidder, tleft / 3600.0); in c_trade()
126 if (!gettrade(lotno, &trade) || !trade.trd_owner) { in c_trade()
132 trade.trd_owner = 0; in c_trade()
256 trade.trd_x = sx; in c_trade()
257 trade.trd_y = sy; in c_trade()
298 if (trade.trd_owner == trade.trd_maxbidder) in check_trade()
307 trade.trd_owner = 0; in check_trade()
319 cname(trade.trd_maxbidder), trade_nameof(&trade, &tg.gen), in check_trade()
387 cname(trade.trd_maxbidder), trade_nameof(&trade, &tg.gen), in check_trade()
[all …]
H A Dset.c57 struct trdstr trade; in c_set() local
92 trade.trd_type = type; in c_set()
105 if (!trade.trd_owner) { in c_set()
110 if (trade.trd_unitid == ni.cur && trade.trd_type == type) { in c_set()
119 trade.trd_owner = 0; in c_set()
132 trade.trd_x = 1; in c_set()
133 trade.trd_y = 0; in c_set()
134 trade.trd_type = type; in c_set()
136 trade.trd_unitid = ni.cur; in c_set()
137 trade.trd_price = price; in c_set()
[all …]
/dports/games/augustus/augustus-3.1.0/src/city/
H A Dtrade.c15 city_data.trade.num_sea_routes = 0; in city_trade_update()
16 city_data.trade.num_land_routes = 0; in city_trade_update()
53 city_data.trade.num_land_routes++; in city_trade_add_land_trade_route()
58 city_data.trade.num_sea_routes++; in city_trade_add_sea_trade_route()
63 return city_data.trade.num_land_routes > 0; in city_trade_has_land_trade_route()
68 return city_data.trade.num_sea_routes > 0; in city_trade_has_sea_trade_route()
98 city_data.trade.caravan_import_resource++; in city_trade_next_caravan_import_resource()
116 city_data.trade.docker_import_resource++; in city_trade_next_docker_import_resource()
120 return city_data.trade.docker_import_resource; in city_trade_next_docker_import_resource()
125 city_data.trade.docker_export_resource++; in city_trade_next_docker_export_resource()
[all …]
H A Dtrade_policy.c9 return city_data.trade.land_policy; in city_trade_policy_get()
11 return city_data.trade.sea_policy; in city_trade_policy_get()
20 city_data.trade.land_policy = policy; in city_trade_policy_set()
23 city_data.trade.sea_policy = policy; in city_trade_policy_set()
/dports/games/julius/julius-1.7.0/src/city/
H A Dtrade.c10 city_data.trade.num_sea_routes = 0; in city_trade_update()
11 city_data.trade.num_land_routes = 0; in city_trade_update()
19 city_data.trade.land_trade_problem_duration--; in city_trade_update()
24 city_data.trade.sea_trade_problem_duration--; in city_trade_update()
33 city_data.trade.num_land_routes++; in city_trade_add_land_trade_route()
38 city_data.trade.num_sea_routes++; in city_trade_add_sea_trade_route()
43 return city_data.trade.num_land_routes > 0; in city_trade_has_land_trade_route()
48 return city_data.trade.num_sea_routes > 0; in city_trade_has_sea_trade_route()
78 city_data.trade.caravan_import_resource++; in city_trade_next_caravan_import_resource()
96 city_data.trade.docker_import_resource++; in city_trade_next_docker_import_resource()
[all …]
/dports/finance/py-backtrader/backtrader-1.9.74.123/backtrader/analyzers/
H A Dtradeanalyzer.py76 def notify_trade(self, trade): argument
77 if trade.justopened:
82 elif trade.status == trade.Closed:
90 tlong = res.tlong = trade.long
91 tshort = res.tshort = not trade.long
108 trpnl.gross.total += trade.pnl
110 trpnl.net.total += trade.pnlcomm
121 pnlcomm = trade.pnlcomm * wl
154 trades.len.total += trade.barlen
172 if trade.barlen * wl:
[all …]
H A Dsqn.py68 def notify_trade(self, trade): argument
69 if trade.status == trade.Closed:
70 self.pnl.append(trade.pnlcomm)
/dports/games/gtkatlantic/gtkatlantic-0.6.3/src/
H A Dtrade.c56 currentgame->trade[tradeslot].open = TRUE; in trade_initnew()
57 currentgame->trade[tradeslot].tradeid = tradeid; in trade_initnew()
76 if(!currentgame->trade[tradeslot].open) return; in trade_destroy_slot()
220 if(!currentgame->trade[tradeslot].open) return; in trade_rebuild_playerlist()
251 if(currentgame->trade[tradeslot].ComponentBox) { in trade_rebuild_component()
253 currentgame->trade[tradeslot].ComponentBox = 0; in trade_rebuild_component()
254 currentgame->trade[tradeslot].SubComponentBox = 0; in trade_rebuild_component()
259 …gtk_container_add(GTK_CONTAINER(currentgame->trade[tradeslot].FrameComponent), currentgame->trade[… in trade_rebuild_component()
301 if(currentgame->trade[tradeslot].SubComponentBox) { in trade_rebuild_subcomponent()
303 currentgame->trade[tradeslot].SubComponentBox = 0; in trade_rebuild_subcomponent()
[all …]
H A Dcallback.c566 …strdup_printf(".Te%d:%d:%d\n", tradeid, currentgame->trade[tradeslot].select_aux, currentgame->tra… in CallBack_trade_button()
569 …strdup_printf(".Tc%d:%d:%d\n", tradeid, currentgame->trade[tradeslot].select_aux, currentgame->tra… in CallBack_trade_button()
610 tradeid = currentgame->trade[tradeslot].tradeid; in CallBack_trade_update_component()
951 currentgame->trade[tradeslot].select_type = 0; in Callback_ProposalList_Select()
952 currentgame->trade[tradeslot].select_from = 0; in Callback_ProposalList_Select()
953 currentgame->trade[tradeslot].select_to = 0; in Callback_ProposalList_Select()
954 currentgame->trade[tradeslot].select_aux = 0; in Callback_ProposalList_Select()
965 currentgame->trade[tradeslot].select_type = typeid; in Callback_ProposalList_Select()
966 currentgame->trade[tradeslot].select_from = fromid; in Callback_ProposalList_Select()
967 currentgame->trade[tradeslot].select_to = toid; in Callback_ProposalList_Select()
[all …]
/dports/finance/py-backtrader/backtrader-1.9.74.123/backtrader/observers/
H A Dtrades.py29 from ..trade import Trade
92 for trade in self._owner._tradespending:
93 if trade.data not in self.ddatas:
96 if not trade.isclosed:
99 pnl = trade.pnlcomm if self.p.pnlcomm else trade.pnl
155 for trade in self._owner._tradespending:
156 if trade.data not in self.ddatas:
159 if not trade.isclosed:
162 self.lines[trade.data._id - 1][0] = trade.pnl
/dports/finance/py-backtrader/backtrader-1.9.74.123/samples/btfd/
H A Dbtfd.py118 def notify_trade(self, trade): argument
122 if trade.isclosed:
125 self.data.num2date(trade.dtclose).date().isoformat(),
126 trade.value,
127 trade.pnl,
128 trade.commission,
131 elif trade.justopened:
134 self.data.num2date(trade.dtopen).date().isoformat(),
135 trade.value,
136 trade.pnl,
[all …]
/dports/finance/py-backtrader/backtrader-1.9.74.123/samples/multitrades/
H A Dmtradeobserver.py41 for trade in self._owner._tradespending:
43 if trade.data is not self.data:
46 if not trade.isclosed:
49 self.lines[trade.tradeid][0] = trade.pnlcomm
/dports/www/py-protego/Protego-0.1.16/tests/test_data/
H A Dwww.alibaba.com17 Disallow: /trade/
58 Disallow: /trade/
100 Disallow: /trade/
125 Allow: /trade/search*?fsb=y&IndexArea=product_en&CatId=&SearchText=a*
126 Allow: /trade/search*?fsb=y&IndexArea=product_en&CatId=&SearchText=b*
127 Allow: /trade/search*?fsb=y&IndexArea=product_en&CatId=&SearchText=c*
128 Allow: /trade/search*?fsb=y&IndexArea=product_en&CatId=&SearchText=d*
129 Allow: /trade/search*?fsb=y&IndexArea=product_en&CatId=&SearchText=e*
130 Allow: /trade/search*?fsb=y&IndexArea=product_en&CatId=&SearchText=f*
131 Allow: /trade/search*?fsb=y&IndexArea=product_en&CatId=&SearchText=g*
/dports/games/freeciv-nox11/freeciv-2.6.6/common/
H A Dtraderoutes.c233 FC_STATIC_ASSERT(ARRAY_SIZE(sorted) == ARRAY_SIZE(pcity->trade), in city_trade_removable()
241 if (0 == pcity->trade[i]) { in city_trade_removable()
267 struct city *pother = game_city_by_number(pcity->trade[sorted[i]]); in city_trade_removable()
284 int trade = -1; in can_establish_trade_route() local
305 trade = trade_between_cities(pc1, pc2); in can_establish_trade_route()
307 if (city_trade_removable(pc1, NULL) >= trade) { in can_establish_trade_route()
313 if (trade == -1) { in can_establish_trade_route()
314 trade = trade_between_cities(pc1, pc2); in can_establish_trade_route()
317 if (city_trade_removable(pc2, NULL) >= trade) { in can_establish_trade_route()
355 if (pcity->trade[i] != 0) { in city_num_trade_routes()
/dports/games/freeciv/freeciv-2.6.6/common/
H A Dtraderoutes.c233 FC_STATIC_ASSERT(ARRAY_SIZE(sorted) == ARRAY_SIZE(pcity->trade), in city_trade_removable()
241 if (0 == pcity->trade[i]) { in city_trade_removable()
267 struct city *pother = game_city_by_number(pcity->trade[sorted[i]]); in city_trade_removable()
284 int trade = -1; in can_establish_trade_route() local
305 trade = trade_between_cities(pc1, pc2); in can_establish_trade_route()
307 if (city_trade_removable(pc1, NULL) >= trade) { in can_establish_trade_route()
313 if (trade == -1) { in can_establish_trade_route()
314 trade = trade_between_cities(pc1, pc2); in can_establish_trade_route()
317 if (city_trade_removable(pc2, NULL) >= trade) { in can_establish_trade_route()
355 if (pcity->trade[i] != 0) { in city_num_trade_routes()
/dports/finance/R-cran-quantmod/quantmod/man/
H A DtradeModel.Rd7 period, then applies specified \code{trade.rule} to calculate
17 trade.dates = NULL,
26 and upper thresholds before trade occurs}
30 \item{trade.dates}{ specific trade interval - defaults to full dataset }
41 allowing for a trade.rule argument to allow for a dynamic trade rule given
/dports/games/openage/openage-0.3.0-1262-ga554ab49/doc/reverse_engineering/game_mechanics/
H A Dmarket.md11 …ets. The further the markets are apart from each other, the more gold is generated by a trade cart.
13 …is means that in the case of two markets being placed next to each other, trade carts will still g…
33 `A` and `B` may depend on civilization attributes and on the speed of the trade vehicle (trade cog …
71 …arts will not seek an alternative market to trade with. As soon as the market is destroyed, all of…
75 If you only had one market, trade carts will stop and immediately lose all carried gold.
77 …ave more than one market, trade carts will choose the market which is closest *from their current …
81 * You can trade with enemy markets.
82 * Full trade carts cannot be loaded onto a transport ship. As soon as you give the order to board t…
/dports/finance/py-backtrader/backtrader-1.9.74.123/samples/order-history/
H A Dorder-history.py71 def notify_trade(self, trade): argument
72 if trade.isclosed:
73 print('profit {}'.format(trade.pnlcomm))
94 def notify_trade(self, trade): argument
95 if trade.isclosed:
96 print('profit {}'.format(trade.pnlcomm))
/dports/games/powder-toy/The-Powder-Toy-95.0/src/simulation/elements/
H A DDEUT.cpp56 int r, rx, ry, trade, np; in update() local
94 goto trade; in update()
105 trade: in update()
106 for ( trade = 0; trade<4; trade ++) in update()
H A DWARP.cpp54 int trade, r, rx, ry; in update() local
62 for ( trade = 0; trade<5; trade ++) in update()
82 trade = 5; in update()
/dports/games/emptyepsilon/EmptyEpsilon-EE-2021.06.23/scripts/
H A Dscenario_53_escape.lua1367 stationCavor.comms_data.trade.food = true
1484 stationDeckard.comms_data.trade.food = true
1517 stationDeer.comms_data.trade.food = true
1767 stationImpala.comms_data.trade.food = true
1938 stationLipkin.comms_data.trade.food = true
2027 stationMarconi.comms_data.trade.food = true
2190 stationOlympus.comms_data.trade.food = true
2313 stationOwen.comms_data.trade.food = true
2479 stationShree.comms_data.trade.food = true
2506 stationSoong.comms_data.trade.food = true
[all …]
/dports/net-im/matterbridge/matterbridge-1.22.3/vendor/github.com/Philipp15b/go-steam/
H A DREADME.md5 In addition, it contains APIs to Steam Community features, like trade offers and inventories.
9 * Trading and trade offers, including inventories and notifications
12 * Persona states (online, offline, looking to trade, etc.)
31 * [`trade`](http://godoc.org/github.com/Philipp15b/go-steam/trade) for trading
32 * [`tradeoffer`](http://godoc.org/github.com/Philipp15b/go-steam/tradeoffer) for trade offers
40 …ref=1047-edfm-2932), for example newly authorized devices will not be able to trade for seven days.
41 …nts, you can expect that sometimes things break randomly. Especially the `trade` and `tradeoffer` …
/dports/finance/py-backtrader/backtrader-1.9.74.123/samples/writer-test/
H A Dwriter-test.py110 def notify_trade(self, trade): argument
111 if trade.isclosed:
113 (trade.pnl, trade.pnlcomm))
115 elif trade.justopened:
116 self.log('TRADE OPENED, SIZE %2d' % trade.size)
/dports/games/7kaa/7kaa-2.15.4p1/
H A DREADME26 * Added trade locations to the trade report.
27 * Sort and filter trade locations based on the map selected caravan.
28 * Allow setting stops using the trade report.
29 * Allow copying trade routes using the trade report.
/dports/math/R-cran-Zelig/Zelig/tests/testthat/
H A Dtest-amelia.R8 z.out <- zelig(gdp_pc ~ trade + civlib, model = "ls", data = a.out)
20 z.out <- zelig(gdp_pc ~ trade + civlib, model = "ls", data = a.out)
21 z.outl <- zelig(gdp_pc ~ log(trade) + civlib, model = "ls", data = a.out)

12345678910>>...243